MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / http_parser_init

Function http_parser_init

libs/qhttpserver/http-parser/http_parser.c:2137–2146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2135
2136
2137void
2138http_parser_init (http_parser *parser, enum http_parser_type t)
2139{
2140 void *data = parser->data; /* preserve application data */
2141 memset(parser, 0, sizeof(*parser));
2142 parser->data = data;
2143 parser->type = t;
2144 parser->state = (t == HTTP_REQUEST ? s_start_req : (t == HTTP_RESPONSE ? s_start_res : s_start_req_or_res));
2145 parser->http_errno = HPE_OK;
2146}
2147
2148void
2149http_parser_settings_init(http_parser_settings *settings)

Callers 9

QHttpConnectionMethod · 0.85
parser_initFunction · 0.85
test_preserve_dataFunction · 0.85
test_header_nread_valueFunction · 0.85
benchFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 6

parser_initFunction · 0.68
test_preserve_dataFunction · 0.68
test_header_nread_valueFunction · 0.68