libfetch 0.0.0
A lightweight asynchronous HTTP/1.1 client library implementing a subset of the WHATWG Fetch API.
Loading...
Searching...
No Matches
http_parse_context Struct Reference

Public Types

enum  { HTTP_PARSE_STATUS_LINE , HTTP_PARSE_HEADERS , HTTP_PARSE_BODY , HTTP_PARSE_COMPLETE }
 

Data Fields

enum http_parse_context:: { ... }  state
 
int minor_version
 
int status_code
 
char * status_msg
 
size_t status_msg_len
 
struct phr_header phr_headers [100]
 
size_t num_headers
 
fetch_headers_theaders
 
bool headers_complete
 
bool chunked_encoding
 
size_t content_length
 
struct phr_chunked_decoder chunked_decoder
 
char * body_buffer
 
size_t body_capacity
 
size_t body_size
 
size_t parse_position
 
size_t last_parse_position
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
HTTP_PARSE_STATUS_LINE 
HTTP_PARSE_HEADERS 
HTTP_PARSE_BODY 
HTTP_PARSE_COMPLETE 

Field Documentation

◆ body_buffer

char* http_parse_context::body_buffer

◆ body_capacity

size_t http_parse_context::body_capacity

◆ body_size

size_t http_parse_context::body_size

◆ chunked_decoder

struct phr_chunked_decoder http_parse_context::chunked_decoder

◆ chunked_encoding

bool http_parse_context::chunked_encoding

◆ content_length

size_t http_parse_context::content_length

◆ headers

fetch_headers_t* http_parse_context::headers

◆ headers_complete

bool http_parse_context::headers_complete

◆ last_parse_position

size_t http_parse_context::last_parse_position

◆ minor_version

int http_parse_context::minor_version

◆ num_headers

size_t http_parse_context::num_headers

◆ parse_position

size_t http_parse_context::parse_position

◆ phr_headers

struct phr_header http_parse_context::phr_headers[100]

◆ []

enum { ... } http_parse_context::state

◆ status_code

int http_parse_context::status_code

◆ status_msg

char* http_parse_context::status_msg

◆ status_msg_len

size_t http_parse_context::status_msg_len

The documentation for this struct was generated from the following file: