$responseCodes
$responseCodes : array
Response codes & messages
HTTP response class
parse(string $response, string $mode = 'r', array $options = array()) : \Pop\Http\Response
Parse a response and create a new response object, either from a URL or a full response string
string | $response | |
string | $mode | |
array | $options |
setVersion(float $version = 1.1) : \Pop\Http\Response
Set the response version
float | $version |
setCode(integer $code = 200) : \Pop\Http\Response
Set the response code
integer | $code |
setMessage(string $message = null) : \Pop\Http\Response
Set the response message
string | $message |
setBody(string $body = null) : \Pop\Http\Response
Set the response body
string | $body |
setHeader(string $name, string $value) : \Pop\Http\Response
Set a response header
string | $name | |
string | $value |
setHeaders(array $headers) : \Pop\Http\Response
Set response headers
array | $headers |
setSslHeaders() : \Pop\Http\Response
Set SSL headers to fix file cache issues over SSL in certain browsers.