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 )(uint8_t *, const HttpReq *, const char *)
 
proto_bool(* get_cookie )(uint8_t *, const HttpReq *, const char *, char *, size_t)
 
proto_bool(* forwarded_client )(uint8_t *, const HttpReq *, char *, size_t, proto_bool *)
 
const char *(* get_query )(uint8_t *, const HttpReq *, const char *)
 
proto_bool(* get_form )(uint8_t *, const HttpReq *, const char *, char *, size_t)
 
const char *(* get_param )(uint8_t *, const HttpReq *, const char *)
 

Detailed Description

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

Definition at line 115 of file http_parser.h.

Member Data Documentation

◆ set_stream_hooks

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

Definition at line 117 of file http_parser.h.

◆ reset

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

Definition at line 118 of file http_parser.h.

◆ feed

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

Definition at line 119 of file http_parser.h.

◆ get_header

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

Definition at line 120 of file http_parser.h.

◆ get_cookie

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

Definition at line 121 of file http_parser.h.

◆ forwarded_client

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

Definition at line 122 of file http_parser.h.

◆ get_query

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

Definition at line 123 of file http_parser.h.

◆ get_form

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

Definition at line 124 of file http_parser.h.

◆ get_param

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

Definition at line 125 of file http_parser.h.


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