MCPcopy Create free account
hub / github.com/boostorg/beast / http_parser_init

Function http_parser_init

test/bench/parser/nodejs-parser/http_parser.c:2143–2152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2141
2142
2143void
2144http_parser_init (http_parser *parser, enum http_parser_type t)
2145{
2146 void *data = parser->data; /* preserve application data */
2147 memset(parser, 0, sizeof(*parser));
2148 parser->data = data;
2149 parser->type = t;
2150 parser->state = (t == HTTP_REQUEST ? s_start_req : (t == HTTP_RESPONSE ? s_start_res : s_start_req_or_res));
2151 parser->http_errno = HPE_OK;
2152}
2153
2154void
2155http_parser_settings_init(http_parser_settings *settings)

Callers 1

nodejs_basic_parserMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected