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

Dispatch table. Addressed by offset, so the layout is asserted below. More...

#include <http_parser.h>

Public Attributes

void(* set_stream_hooks )(uint8_t *, HttpStreamBeginCb, HttpStreamDataCb, HttpStreamAbortCb)
void(* reset )(uint8_t *, HttpReq *)
void(* feed )(uint8_t *, HttpReq *, uint8_t)
const char *(* get_header )(const uint8_t *, const HttpReq *, const char *)
embed_bool(* get_cookie )(const uint8_t *, const HttpReq *, const char *, char *, size_t)
embed_bool(* forwarded_client )(const uint8_t *, const HttpReq *, char *, size_t, embed_bool *)
const char *(* get_query )(const uint8_t *, const HttpReq *, const char *)
embed_bool(* get_form )(const uint8_t *, const HttpReq *, const char *, char *, size_t)
const char *(* get_param )(const uint8_t *, const HttpReq *, const char *)

Detailed Description

Dispatch table. Addressed by offset, so the layout is asserted below.

Definition at line 97 of file http_parser.h.

Member Data Documentation

◆ set_stream_hooks

void(* HttpParserNs::set_stream_hooks) (uint8_t *, HttpStreamBeginCb, HttpStreamDataCb, HttpStreamAbortCb)

Definition at line 99 of file http_parser.h.

◆ reset

void(* HttpParserNs::reset) (uint8_t *, HttpReq *)

Definition at line 100 of file http_parser.h.

◆ feed

void(* HttpParserNs::feed) (uint8_t *, HttpReq *, uint8_t)

Definition at line 101 of file http_parser.h.

◆ get_header

const char *(* HttpParserNs::get_header) (const uint8_t *, const HttpReq *, const char *)

Definition at line 102 of file http_parser.h.

◆ get_cookie

embed_bool(* HttpParserNs::get_cookie) (const uint8_t *, const HttpReq *, const char *, char *, size_t)

Definition at line 103 of file http_parser.h.

◆ forwarded_client

embed_bool(* HttpParserNs::forwarded_client) (const uint8_t *, const HttpReq *, char *, size_t, embed_bool *)

Definition at line 104 of file http_parser.h.

◆ get_query

const char *(* HttpParserNs::get_query) (const uint8_t *, const HttpReq *, const char *)

Definition at line 105 of file http_parser.h.

◆ get_form

embed_bool(* HttpParserNs::get_form) (const uint8_t *, const HttpReq *, const char *, char *, size_t)

Definition at line 106 of file http_parser.h.

◆ get_param

const char *(* HttpParserNs::get_param) (const uint8_t *, const HttpReq *, const char *)

Definition at line 107 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