Method |
Description |
|
addHeader ( string $header, string $value ) : void |
Appends a header value for the specified header |
|
addHeaders ( array $headers ) : void |
Merges in an associative array of headers. |
|
clearBody ( ) : void |
Clear response body |
|
getBody ( ) : Controller | Bluz\Layout\Layout |
Get response body |
|
getCookie ( string $name ) : array | null |
Get Cookie by name |
|
getHeader ( string $header ) : string |
Retrieve a header by the given case-insensitive name as a string |
|
getHeaderAsArray ( string $header ) : string[] |
Retrieves a header by the given case-insensitive name as an array of strings |
|
getHeaders ( ) : array |
Gets all message headers |
|
getProtocolVersion ( ) : string |
Gets the HTTP protocol version as a string |
|
getReasonPhrase ( ) : string | null |
Gets the response Reason-Phrase, a short textual description of the Status-Code |
|
getStatusCode ( ) : integer |
Gets the response Status-Code |
|
hasHeader ( string $header ) : boolean |
Checks if a header exists by the given case-insensitive name |
|
removeHeader ( string $header ) : void |
Remove a specific header by case-insensitive name. |
|
removeHeaders ( ) : void |
Remove all headers |
|
send ( ) |
send |
|
setBody ( mixed $body ) : void |
Set response body |
|
setCookie ( string $name, string $value = '', integer | string | DateTime $expire, string $path = '/', string $domain = '', boolean $secure = false, boolean $httpOnly = false ) : void |
Set Cookie |
|
setHeader ( string $header, string | string[] $value ) : void |
Sets a header, replacing any existing values of any headers with the
same case-insensitive name |
|
setHeaders ( array $headers ) : void |
Sets headers, replacing any headers that have already been set on the message |
|
setReasonPhrase ( string $phrase ) |
Sets the Reason-Phrase of the response |
|
setStatusCode ( integer $code ) : void |
Sets the status code of this response |
|
switchType ( $type ) |
Set Response Type, one of JSON, HTML or CLI |
|