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 37 of file http_parser.h.

Member Data Documentation

◆ slot_id

uint8_t HttpReq::slot_id

Definition at line 39 of file http_parser.h.

◆ parse_state

ParseState HttpReq::parse_state

Definition at line 40 of file http_parser.h.

◆ version

HttpVersion HttpReq::version

Definition at line 41 of file http_parser.h.

◆ _version_hash

uint32_t HttpReq::_version_hash

Definition at line 42 of file http_parser.h.

◆ method

char HttpReq::method[PROTOCORE_METHOD_BUF_SIZE]

Definition at line 44 of file http_parser.h.

◆ path

char HttpReq::path[MAX_PATH_LEN]

Definition at line 45 of file http_parser.h.

◆ path_idx

size_t HttpReq::path_idx

Definition at line 46 of file http_parser.h.

◆ query

char HttpReq::query[MAX_QUERY_LEN]

Definition at line 48 of file http_parser.h.

◆ query_idx

size_t HttpReq::query_idx

Definition at line 49 of file http_parser.h.

◆ query_params

QueryParam HttpReq::query_params[MAX_QUERY_PARAMS]

Definition at line 50 of file http_parser.h.

◆ query_count

uint8_t HttpReq::query_count

Definition at line 51 of file http_parser.h.

◆ path_params

QueryParam HttpReq::path_params[MAX_PATH_PARAMS]

Definition at line 53 of file http_parser.h.

◆ path_param_count

uint8_t HttpReq::path_param_count

Definition at line 54 of file http_parser.h.

◆ headers

Header HttpReq::headers[MAX_HEADERS]

Definition at line 62 of file http_parser.h.

◆ header_count

uint8_t HttpReq::header_count

Definition at line 63 of file http_parser.h.

◆ current_token_idx

size_t HttpReq::current_token_idx

Definition at line 64 of file http_parser.h.

◆ cur_key

char HttpReq::cur_key[MAX_KEY_LEN]

Definition at line 66 of file http_parser.h.

◆ cur_val

char HttpReq::cur_val[MAX_VAL_LEN]

Definition at line 67 of file http_parser.h.

◆ content_length

size_t HttpReq::content_length

Definition at line 69 of file http_parser.h.

◆ content_length_count

uint8_t HttpReq::content_length_count

Definition at line 70 of file http_parser.h.

◆ host_count

uint8_t HttpReq::host_count

Definition at line 71 of file http_parser.h.

◆ body_bytes_read

size_t HttpReq::body_bytes_read

Definition at line 72 of file http_parser.h.

◆ body

uint8_t HttpReq::body[BODY_BUF_SIZE+1]

Definition at line 74 of file http_parser.h.

◆ body_len

size_t HttpReq::body_len

Definition at line 75 of file http_parser.h.


The documentation for this struct was generated from the following file:
  • src/network_drivers/presentation/http/http_parser/http_parser.h