#include <HttpdClient.hxx>
Definition at line 37 of file HttpdClient.hxx.
HttpdClient::HttpdClient |
( |
HttpdOutput & |
httpd, |
|
|
int |
_fd, |
|
|
EventLoop & |
_loop, |
|
|
bool |
_metadata_supported |
|
) |
| |
- Parameters
-
httpd | the HTTP output device |
_fd | the socket file descriptor |
HttpdClient::~HttpdClient |
( |
| ) |
|
Note: this does not remove the client from the HttpdOutput object.
void HttpdClient::BeginResponse |
( |
| ) |
|
Switch the client to the "RESPONSE" state.
void HttpdClient::CancelQueue |
( |
| ) |
|
void HttpdClient::Close |
( |
| ) |
|
Frees the client and removes it from the server's client list.
bool HttpdClient::HandleLine |
( |
const char * |
line | ) |
|
Handle a line of the HTTP request.
void HttpdClient::LockClose |
( |
| ) |
|
virtual void HttpdClient::OnSocketClosed |
( |
| ) |
|
|
overrideprotectedvirtual |
void HttpdClient::OnSocketError |
( |
std::exception_ptr |
ep | ) |
|
|
overrideprotectedvirtual |
virtual InputResult HttpdClient::OnSocketInput |
( |
void * |
data, |
|
|
size_t |
length |
|
) |
| |
|
overrideprotectedvirtual |
Data has been received on the socket.
- Parameters
-
data | a pointer to the beginning of the buffer; the buffer may be modified by the method while it processes the data |
Implements BufferedSocket.
virtual bool HttpdClient::OnSocketReady |
( |
unsigned |
flags | ) |
|
|
overrideprotectedvirtual |
- Returns
- false if the socket has been closed
Reimplemented from BufferedSocket.
void HttpdClient::PushMetaData |
( |
Page * |
page | ) |
|
Sends the passed metadata.
void HttpdClient::PushPage |
( |
Page * |
page | ) |
|
Appends a page to the client's queue.
bool HttpdClient::SendResponse |
( |
| ) |
|
Sends the status line and response headers to the client.
bool HttpdClient::TryWrite |
( |
| ) |
|
ssize_t HttpdClient::TryWritePage |
( |
const Page & |
page, |
|
|
size_t |
position |
|
) |
| |
The documentation for this class was generated from the following file: