closeConnection();
45 virtual boolisSecure();
57 virtual size_twriteBuffer(byte* buffer,
size_tlength);
58 virtual size_treadBytesToBuffer(byte* buffer,
size_tlength);
59 virtual boolcanReadData();
60 virtual size_tpendingByteCount();
63 unsigned long_lastTransmissionTS;
66 unsigned long_shutdownTS;
90STATE_REQUEST_FINISHED,
92STATE_HEADERS_FINISHED,
112 voidraiseError(uint16_t code, std::string reason);
113 voidreadLine(
intlengthLimit);
115 boolisTimeoutExceeded();
116 voidrefreshTimeout();
119 size_tpendingBufferSize();
121 voidsignalClientClose();
122 voidsignalRequestError();
123 size_treadBuffer(byte* buffer,
size_tlength);
124 size_tgetCacheSize();
125 boolcheckWebsocket();
128 char_receiveBuffer[HTTPS_CONNECTION_DATA_CHUNK_SIZE];
131 int_bufferProcessed;
133 int_bufferUnusedIdx;
136 structsockaddr _sockAddr;
145std::string text =
"";
146 boolparsingFinished =
false;
150std::string _httpMethod;
151std::string _httpResource;
virtual IPAddress getClientIP()
Definition: HTTPConnection.cpp:65
void handleWebsocketHandshake(HTTPRequest *req, HTTPResponse *res)
Definition: HTTPConnection.cpp:652
Represents the request stream for an HTTP request.
Definition: HTTPRequest.hpp:22
Represents the response stream of an HTTP request.
Definition: HTTPResponse.hpp:25
void validationMiddleware(HTTPRequest *req, HTTPResponse *res, std::function< void()> next)
Definition: HTTPConnection.cpp:622
bool isError()
Definition: HTTPConnection.cpp:99
Definition: WebsocketHandler.hpp:34
This class is used internally to resolve a string URL to the corresponding HTTPNode.
Definition: ResourceResolver.hpp:22
Definition: WebsocketInputStreambuf.hpp:21
Internal class to handle the state of a connection.
Definition: ConnectionContext.hpp:18
Represents a single open connection for the plain HTTPServer, without TLS.
Definition: HTTPConnection.hpp:38
bool isClosed()
Definition: HTTPConnection.cpp:92
std::string websocketKeyResponseHash(std::string const &key)
Definition: HTTPConnection.cpp:664
virtual int initialize(int serverSocketID, HTTPHeaders *defaultHeaders)
Definition: HTTPConnection.cpp:33
Definition: ConnectionContext.cpp:3
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4