Client-side HTTP protocol handler (mirror of HTTPProtocol for outgoing requests).
More...
#include <NetworkProtocols.h>
|
| uint8 | protocol |
| | PROTOCOL_* id of this handler.
|
Client-side HTTP protocol handler (mirror of HTTPProtocol for outgoing requests).
Definition at line 849 of file NetworkProtocols.h.
◆ HTTPClientProtocol()
| cmlabs::HTTPClientProtocol::HTTPClientProtocol |
( |
| ) |
|
|
inline |
◆ CheckBufferForCompatibility()
| bool cmlabs::HTTPClientProtocol::CheckBufferForCompatibility |
( |
const char * | buffer, |
|
|
uint32 | length ) |
|
static |
- Returns
- true when
buffer starts like an HTTP response (status line).
Definition at line 2277 of file NetworkProtocols.cpp.
◆ InitialiseConversation()
◆ ReceiveHTTPReply()
Read a full reply from the connection.
- Parameters
-
| con | Connection. |
| timeout | Max wait in ms. |
- Returns
- New reply owned by the caller, or NULL on timeout/parse failure. Blocking.
Definition at line 2289 of file NetworkProtocols.cpp.
◆ ReceiveHTTPRequest()
Read a full request from the connection.
- Parameters
-
| con | Connection. |
| timeout | Max wait in ms. |
- Returns
- New request owned by the caller, or NULL. Blocking.
Definition at line 2297 of file NetworkProtocols.cpp.
◆ SendHTTPReply()
Serialise and send a reply.
- Parameters
-
| con | Connection. |
| reply | Reply (caller keeps ownership). |
- Returns
- true if fully sent.
Definition at line 2285 of file NetworkProtocols.cpp.
◆ SendHTTPRequest()
Serialise and send a request.
- Parameters
-
| con | Connection. |
| req | Request (caller keeps ownership). |
- Returns
- true if fully sent.
Definition at line 2293 of file NetworkProtocols.cpp.
The documentation for this class was generated from the following files: