Lines Matching refs:hpctx

633 …_request_parse_header (request_st * const restrict r, http_header_parse_ctx * const restrict hpctx)  in http_request_parse_header()  argument
637 const char * const restrict k = hpctx->k; in http_request_parse_header()
638 const char * restrict v = hpctx->v; in http_request_parse_header()
639 const uint32_t klen = hpctx->klen; in http_request_parse_header()
640 uint32_t vlen = hpctx->vlen; in http_request_parse_header()
646 if ((hpctx->hlen += klen + vlen + 4) > hpctx->max_request_field_size) { in http_request_parse_header()
659 if (!hpctx->trailers) { in http_request_parse_header()
662 if (!hpctx->pseudo) /*(pseudo header after non-pseudo header)*/ in http_request_parse_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()
729 if (__builtin_expect( (hpctx->scheme), 0)) in http_request_parse_header()
731 hpctx->scheme = 1; /*(marked present, but otherwise ignored)*/ in http_request_parse_header()
740 hpctx->scheme = 1; in http_request_parse_header()
766 if (hpctx->pseudo) { /*(transition to non-pseudo headers)*/ in http_request_parse_header()
767 hpctx->pseudo = 0; in http_request_parse_header()
769 http_request_validate_pseudohdrs(r, hpctx->scheme, in http_request_parse_header()
770 hpctx->http_parseopts); in http_request_parse_header()
777 (hpctx->http_parseopts & HTTP_PARSEOPT_HEADER_STRICT); 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()