HttpClient
class HttpClient (View source)
The http client that facilitates sending responses to the browser client.
Methods
__construct()
HttpClient constructor.
void
void
setResponseChunkSize(int $bytes)
Sets the size of the chunks in bytes that are sent to the browser.
void
omitBody(bool $omit = true)
Tells the client to omit the body from the response.
int
send(ResponseInterface $response)
Sends the given response to the browser.
Details
at line 27
__construct()
HttpClient constructor.
at line 47
void
setResponseChunkSize(int $bytes)
Sets the size of the chunks in bytes that are sent to the browser.
at line 60
void
omitBody(bool $omit = true)
Tells the client to omit the body from the response.
at line 70
int
send(ResponseInterface $response)
Sends the given response to the browser.