MCPcopy Create free account
hub / github.com/apache/brpc / http_parser_init

Function http_parser_init

src/brpc/details/http_parser.cpp:2181–2190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2179
2180
2181void
2182http_parser_init (http_parser *parser, enum http_parser_type t)
2183{
2184 void *data = parser->data; /* preserve application data */
2185 memset(parser, 0, sizeof(*parser));
2186 parser->data = data;
2187 parser->type = t;
2188 parser->state = (t == HTTP_REQUEST ? s_start_req : (t == HTTP_RESPONSE ? s_start_res : s_start_req_or_res));
2189 parser->http_errno = HPE_OK;
2190}
2191
2192const char *
2193http_errno_name(enum http_errno err) {

Callers 3

TEST_FFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
HttpMessageMethod · 0.85

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.68