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