Lines Matching refs:name
125 * @param string $name
128 function hasHeader($name) { argument
130 return isset($this->headers[strtolower($name)]);
147 * @param string $name
150 function getHeader($name) { argument
152 $name = strtolower($name);
154 if (isset($this->headers[$name])) {
155 return implode(',', $this->headers[$name][1]);
169 * @param string $name
172 function getHeaderAsArray($name) { argument
174 $name = strtolower($name);
176 if (isset($this->headers[$name])) {
177 return $this->headers[$name][1];
191 * @param string $name
195 function setHeader($name, $value) { argument
197 $this->headers[strtolower($name)] = [$name, (array)$value];
214 foreach ($headers as $name => $value) {
215 $this->setHeader($name, $value);
227 * @param string $name
231 function addHeader($name, $value) { argument
233 $lName = strtolower($name);
241 $name,
258 foreach ($headers as $name => $value) {
259 $this->addHeader($name, $value);
274 function removeHeader($name) { argument
276 $name = strtolower($name);
277 if (!isset($this->headers[$name])) {
280 unset($this->headers[$name]);