A connected HTTP client, holding its socket plus the receive and send buffers.
Synopsis
Declared in <httpserver.h>
class HTTPRemoteClient;
Member Functions
Name |
Description |
|
Constructors |
|
Deleted copy assignment; clients are only used through shared pointers. |
Returns the cached origin string of the connected peer. |
|
Returns the address of the connected peer. |
|
Used for tests. @{ Read the client's receive buffer. |
|
Access the request currently being parsed. |
|
Returns the client's underlying socket. |
|
Flag the client for disconnection if it is idle past the timeout or a global disconnect is requested. |
|
Push data (if there is any) from client's m_send_buffer to the connected socket. |
|
Returns whether the client has response data ready to send. |
|
Read available bytes from the socket into the receive buffer. |
|
Queue a response to be written to the client's socket. |
Static Member Functions
Name |
Description |
Try to read an HTTPRequest from a client's receive buffer. Only complete requests are returned, incomplete requests are left in the buffer to wait for more data. Some read errors will mark this client for disconnection. |
Protected Member Functions
Name |
Description |
Used for tests. |
Created with MrDocs