Struct SYN_HttpdRequest¶
Parsed HTTP request container presented to route handlers.
#include <syn_httpd.h>
Public Attributes¶
| Type | Name |
|---|---|
| size_t | body_buffered_len |
| size_t | body_buffered_offset |
| size_t | body_consumed |
| SYN_Socket | client_sock |
| uint32_t | content_length |
| const char * | content_type |
| const char * | headers |
| SYN_HttpMethod | method |
| const char * | path |
| const char * | query |
Public Attributes Documentation¶
variable body_buffered_len¶
Length of buffered body bytes
variable body_buffered_offset¶
Offset in work_buf to buffered body
variable body_consumed¶
Bytes of body already consumed
variable client_sock¶
Client socket (for body reads)
variable content_length¶
Content-Length, 0 if absent
variable content_type¶
Content-Type, or NULL
variable headers¶
Pointer to start of headers
variable method¶
GET, POST, etc.
variable path¶
Request path (in work_buf)
variable query¶
Query string after '?', or NULL
The documentation for this class was generated from the following file src/syntropic/net/syn_httpd.h