|
| | HttpClientHandler ()=default |
| |
| | HttpClientHandler (ClientT &client) |
| |
| | HttpClientHandler (ClientT *client) |
| |
| virtual | ~HttpClientHandler ()=default |
| |
| void | setClient (ClientT *client) |
| |
| void | readHttpHeader () |
| | Reads the http header info from the client.
|
| |
| void | reply (int status, const char *msg) |
| |
| void | replyChunked (const char *contentType, Stream &inputStream, int status=200, const char *msg=SUCCESS) override |
| |
| void | replyChunked (const char *contentType, int status=200, const char *msg=SUCCESS) override |
| |
| void | reply (const char *contentType, Stream &inputStream, int size, int status=200, const char *msg=SUCCESS) override |
| |
| void | reply (const char *contentType, size_t(*callback)(Print &out, void *ref), int status=200, const char *msg=SUCCESS, void *ref=nullptr) override |
| |
| void | reply (const char *contentType, const char *str, int status=200, const char *msg=SUCCESS) override |
| |
| void | reply (const char *contentType, const uint8_t *str, int len, int status=200, const char *msg=SUCCESS) override |
| |
| void | replyOK () override |
| |
| void | replyNotFound () override |
| |
| void | replyError (int err, const char *msg="Internal Server Error") override |
| |
| void | endClient () override |
| |
| void | crlf () override |
| |
| Client * | client () override |
| |
| HttpRequestHeader & | requestHeader () |
| |
| HttpReplyHeader & | replyHeader () |
| |
| void | resize (size_t newSize) |
| |
template<typename ClientT>
class tiny_dlna::HttpClientHandler< ClientT >
Handles HTTP client connections and responses for the DLNA HTTP server.
This class encapsulates all logic for managing a single HTTP client connection, including reading requests, writing replies (including chunked and callback-based), and managing the internal buffer. It is designed to be used as a handler within the HttpServer class template, and supports both pointer and reference-based client assignment. All HTTP response methods are provided, including error and not-found replies, and the handler is responsible for managing the client lifecycle.
- Template Parameters
-
| ClientT | The concrete client type (e.g., WiFiClient, EthernetClient) used for network I/O. |