class Response implements ProvidesResponseData

Class Response

Constants

private HEADER_PATTERN

private STATUS_CODE_PATTERN

private LINE_BREAK_PATTERN

private BLANK_LINE_PATTERN

private DEFAULT_STATUS_CODE

Methods

__construct(string $output, string $error, float $duration)

No description

array
getHeader(string $headerKey)

No description

string
getHeaderLine(string $headerKey)

No description

array
getHeaders()

No description

string
getBody()

No description

string
getOutput()

No description

string
getError()

No description

float
getDuration()

No description

int
getStatusCode()

Returns the status code of the Status header, or 200 if there is no Status header, as defined by the CGI specification.

Details

at line 40
__construct(string $output, string $error, float $duration)

No description

Parameters

string $output
string $error
float $duration

at line 136
array getHeader(string $headerKey)

No description

Parameters

string $headerKey

Return Value

array

at line 141
string getHeaderLine(string $headerKey)

No description

Parameters

string $headerKey

Return Value

string

at line 146
array getHeaders()

No description

Return Value

array

at line 151
string getBody()

No description

Return Value

string

at line 156
string getOutput()

No description

Return Value

string

at line 161
string getError()

No description

Return Value

string

at line 166
float getDuration()

No description

Return Value

float

at line 175
int getStatusCode()

Returns the status code of the Status header, or 200 if there is no Status header, as defined by the CGI specification.

Return Value

int