ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
HttpReq Struct Reference

#include <http_parser.h>

Public Attributes

uint8_t slot_id
 
ParseState parse_state
 
HttpVersion version
 
uint32_t _version_hash
 
char method [PROTOCORE_METHOD_BUF_SIZE]
 
char path [MAX_PATH_LEN]
 
size_t path_idx
 
char query [MAX_QUERY_LEN]
 
size_t query_idx
 
QueryParam query_params [MAX_QUERY_PARAMS]
 
uint8_t query_count
 
QueryParam path_params [MAX_PATH_PARAMS]
 
uint8_t path_param_count
 
Header headers [MAX_HEADERS]
 
uint8_t header_count
 
size_t current_token_idx
 
char cur_key [MAX_KEY_LEN]
 
char cur_val [MAX_VAL_LEN]
 
size_t content_length
 
uint8_t content_length_count
 
uint8_t host_count
 
size_t body_bytes_read
 
uint8_t body [BODY_BUF_SIZE+1]
 
size_t body_len
 

Detailed Description

Definition at line 55 of file http_parser.h.

Member Data Documentation

◆ slot_id

uint8_t HttpReq::slot_id

Definition at line 57 of file http_parser.h.

◆ parse_state

ParseState HttpReq::parse_state

Definition at line 58 of file http_parser.h.

◆ version

HttpVersion HttpReq::version

Definition at line 59 of file http_parser.h.

◆ _version_hash

uint32_t HttpReq::_version_hash

Definition at line 60 of file http_parser.h.

◆ method

char HttpReq::method[PROTOCORE_METHOD_BUF_SIZE]

Definition at line 62 of file http_parser.h.

◆ path

char HttpReq::path[MAX_PATH_LEN]

Definition at line 63 of file http_parser.h.

◆ path_idx

size_t HttpReq::path_idx

Definition at line 64 of file http_parser.h.

◆ query

char HttpReq::query[MAX_QUERY_LEN]

Definition at line 66 of file http_parser.h.

◆ query_idx

size_t HttpReq::query_idx

Definition at line 67 of file http_parser.h.

◆ query_params

QueryParam HttpReq::query_params[MAX_QUERY_PARAMS]

Definition at line 68 of file http_parser.h.

◆ query_count

uint8_t HttpReq::query_count

Definition at line 69 of file http_parser.h.

◆ path_params

QueryParam HttpReq::path_params[MAX_PATH_PARAMS]

Definition at line 71 of file http_parser.h.

◆ path_param_count

uint8_t HttpReq::path_param_count

Definition at line 72 of file http_parser.h.

◆ headers

Header HttpReq::headers[MAX_HEADERS]

Definition at line 80 of file http_parser.h.

◆ header_count

uint8_t HttpReq::header_count

Definition at line 81 of file http_parser.h.

◆ current_token_idx

size_t HttpReq::current_token_idx

Definition at line 82 of file http_parser.h.

◆ cur_key

char HttpReq::cur_key[MAX_KEY_LEN]

Definition at line 84 of file http_parser.h.

◆ cur_val

char HttpReq::cur_val[MAX_VAL_LEN]

Definition at line 85 of file http_parser.h.

◆ content_length

size_t HttpReq::content_length

Definition at line 87 of file http_parser.h.

◆ content_length_count

uint8_t HttpReq::content_length_count

Definition at line 88 of file http_parser.h.

◆ host_count

uint8_t HttpReq::host_count

Definition at line 89 of file http_parser.h.

◆ body_bytes_read

size_t HttpReq::body_bytes_read

Definition at line 90 of file http_parser.h.

◆ body

uint8_t HttpReq::body[BODY_BUF_SIZE+1]

Definition at line 92 of file http_parser.h.

◆ body_len

size_t HttpReq::body_len

Definition at line 93 of file http_parser.h.


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