Response

Response

class Response

Response object.

Methods

__construct(string $content = '', int $status = 200, array $headers = array())

Constructor.

string __toString()

Converts the response object to string containing all headers and the response content.

string getContent()

Gets the response content.

int getStatus()

Gets the response status code.

array getHeaders()

Gets the response headers.

string|array getHeader(string