HTTP_CONTINUE
HTTP_CONTINUE = 100
Representation of an outgoing, getServer-side response.
Per the HTTP specification, this interface includes properties for each of the following:
setStatusCode(integer $code, string $reason = '') : self
Return an instance with the specified status code and, optionally, reason phrase.
If no reason phrase is specified, will default recommended reason phrase for the response's status code.
integer | $code | The 3-digit integer result code to set. |
string | $reason | The reason phrase to use with the provided status code; if none is provided, will default to the IANA name. |
For invalid status code arguments.
setDate(\DateTime $date) : \CodeIgniter\HTTP\ResponseInterface
Sets the date header
\DateTime | $date |
setContentType(string $mime, string $charset = 'UTF-8') : \CodeIgniter\HTTP\ResponseInterface
Sets the Content Type header for this response with the mime type and, optionally, the charset.
string | $mime | |
string | $charset |
setCache(array $options = array()) : \CodeIgniter\HTTP\ResponseInterface
A shortcut method that allows the developer to set all of the cache-control headers in one method call.
The options array is used to provide the cache-control directives for the header. It might look something like:
$options = [
'max-age' => 300,
's-maxage' => 900
'etag' => 'abcde',
];
Typical options are:
array | $options |
send() : \CodeIgniter\HTTP\ResponseInterface
Sends the output to the browser.