Skip to content

Struct SYN_HttpdRequest

ClassList > 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

size_t SYN_HttpdRequest::body_buffered_len;

Length of buffered body bytes


variable body_buffered_offset

size_t SYN_HttpdRequest::body_buffered_offset;

Offset in work_buf to buffered body


variable body_consumed

size_t SYN_HttpdRequest::body_consumed;

Bytes of body already consumed


variable client_sock

SYN_Socket SYN_HttpdRequest::client_sock;

Client socket (for body reads)


variable content_length

uint32_t SYN_HttpdRequest::content_length;

Content-Length, 0 if absent


variable content_type

const char* SYN_HttpdRequest::content_type;

Content-Type, or NULL


variable headers

const char* SYN_HttpdRequest::headers;

Pointer to start of headers


variable method

SYN_HttpMethod SYN_HttpdRequest::method;

GET, POST, etc.


variable path

const char* SYN_HttpdRequest::path;

Request path (in work_buf)


variable query

const char* SYN_HttpdRequest::query;

Query string after '?', or NULL



The documentation for this class was generated from the following file src/syntropic/net/syn_httpd.h