Lines Matching refs:id
369 static int http_request_parse_duplicate(request_st * const restrict r, const enum http_header_e id,… in http_request_parse_duplicate() argument
373 const buffer * const vb = http_header_request_get(r, id, k, klen); in http_request_parse_duplicate()
378 switch (id) { in http_request_parse_duplicate()
408 …arse_single_header(request_st * const restrict r, const enum http_header_e id, const char * const … in http_request_parse_single_header() argument
419 switch (id) { in http_request_parse_single_header()
444 if (light_btst(r->rqst_htags, id)) in http_request_parse_single_header()
445 return http_request_parse_duplicate(r, id, k, klen, v, vlen); in http_request_parse_single_header()
497 http_header_request_append(r, id, k, klen, v, vlen); in http_request_parse_single_header()
674 if (__builtin_expect( (hpctx->id == HTTP_HEADER_H2_UNKNOWN), 0)) { in http_request_parse_header()
678 hpctx->id = HTTP_HEADER_H2_PATH; in http_request_parse_header()
682 hpctx->id = HTTP_HEADER_H2_METHOD_GET; in http_request_parse_header()
684 hpctx->id = HTTP_HEADER_H2_SCHEME_HTTP; in http_request_parse_header()
688 hpctx->id = HTTP_HEADER_H2_PROTOCOL; in http_request_parse_header()
692 hpctx->id = HTTP_HEADER_H2_AUTHORITY; in http_request_parse_header()
697 if (hpctx->id >= HTTP_HEADER_H2_UNKNOWN) in http_request_parse_header()
702 switch (hpctx->id) { in http_request_parse_header()
796 if (__builtin_expect( (hpctx->id == HTTP_HEADER_H2_UNKNOWN), 0)) { in http_request_parse_header()
809 hpctx->id = http_header_hkey_get_lc(k, klen); in http_request_parse_header()
812 const enum http_header_e id = (enum http_header_e)hpctx->id; in http_request_parse_header() local
814 if (__builtin_expect( (id == HTTP_HEADER_TE), 0) in http_request_parse_header()
819 return http_request_parse_single_header(r, id, k, klen, v, vlen); in http_request_parse_header()
1151 const enum http_header_e id = http_header_hkey_get(k, klen); in http_request_parse_headers() local
1153 if (id == HTTP_HEADER_OTHER) { in http_request_parse_headers()
1204 int status = http_request_parse_single_header(r, id, k, (size_t)klen, v, (size_t)vlen); in http_request_parse_headers()