AjaxHTTPResponse::__construct
Create a new HTTP response
Signature
public function __construct([SS_HTTPRequest
$request = NULL,
[string
$body = NULL,
[int
$statusCode = NULL,
[string
$statusDescription = NULL]]]] )
Parameters
$request
—
object
- - The corresponding request object
$body
—
string
- - The body of the response
$statusCode
—
int
- - The numeric status code - 200, 404, etc
$statusDescription
—
string
- - The text to be given alongside the status code.
See for more information.