Lines Matching defs:header
24 * For instance with {@link header()}, the following:
25 * `header("Content-Type: text/html")`
140 // header should before the status
141 // because for instance a `"Location` header changes the status to 302
142 foreach ($this->headers as $header) {
143 header($header);
236 function addHeader(string $header): HttpResponse
238 $this->headers[] = $header;
286 * Return the first header value (as an header may have duplicates)
294 throw new ExceptionNotFound("No header found for the name $headerName");
301 * @throws ExceptionNotFound - if the header was not found
302 * @throws ExceptionNotExists - if the header value could not be identified
307 $header = $this->getHeader($headerName);
308 return Http::extractHeaderValue($header);