Response

Collects information about a response to send for a request.

Methods

Initialize a response.

__construct(int $statusCode, array $headers, string $body) 

Arguments

$statusCode

int

The HTTP status code to send.

$headers

array

The HTTP headers to send.

$body

string

The body data to send.

Send response headers and write body data to output.

send() 

Properties

The HTTP status code to send.

statusCode : 
type

int

The HTTP headers to send.

headers : 
type

array

The body data to send.

body : 
type

string