Home
last modified time | relevance | path

Searched refs:UF_HOST (Results 1 – 8 of 8) sorted by relevance

/third_party/nghttp2/third-party/url-parser/
Durl_parser.c449 size_t buflen = u->field_data[UF_HOST].off + u->field_data[UF_HOST].len; in http_parse_host()
451 assert(u->field_set & (1 << UF_HOST)); in http_parse_host()
453 u->field_data[UF_HOST].len = 0; in http_parse_host()
457 for (p = buf + u->field_data[UF_HOST].off; p < buf + buflen; p++) { in http_parse_host()
467 u->field_data[UF_HOST].off = (uint16_t)(p - buf); in http_parse_host()
469 u->field_data[UF_HOST].len++; in http_parse_host()
474 u->field_data[UF_HOST].off = (uint16_t)(p - buf); in http_parse_host()
476 u->field_data[UF_HOST].len++; in http_parse_host()
481 u->field_data[UF_HOST].len++; in http_parse_host()
573 uf = UF_HOST; in http_parser_parse_url()
[all …]
Durl_parser.h57 , UF_HOST = 1 enumerator
/third_party/nghttp2/examples/
Dlibevent-client.c107 stream_data->authoritylen = u->field_data[UF_HOST].len; in create_http2_stream_data()
109 memcpy(stream_data->authority, &uri[u->field_data[UF_HOST].off], in create_http2_stream_data()
110 u->field_data[UF_HOST].len); in create_http2_stream_data()
113 (size_t)snprintf(stream_data->authority + u->field_data[UF_HOST].len, in create_http2_stream_data()
584 host = strndup(&uri[u.field_data[UF_HOST].off], u.field_data[UF_HOST].len); in run()
/third_party/nghttp2/src/
Dnghttp.cc197 ? util::get_uri_field(uri.c_str(), u, UF_HOST) in get_real_host()
328 if (util::has_uri_field(u, UF_HOST)) { in is_ipv6_literal_addr()
329 return memchr(uri.c_str() + u.field_data[UF_HOST].off, ':', in is_ipv6_literal_addr()
330 u.field_data[UF_HOST].len); in is_ipv6_literal_addr()
1451 util::get_uri_field(reqvec[0]->uri.c_str(), reqvec[0]->u, UF_HOST); in update_hostport()
1457 util::write_uri_field(ss, reqvec[0]->uri.c_str(), reqvec[0]->u, UF_HOST); in update_hostport()
1702 !util::fieldeq(uri.c_str(), u, UF_HOST, host)) { in update_html_parser()
2630 auto host = decode_host(util::get_uri_field(uri.c_str(), u, UF_HOST)); in run()
3138 config.host_override = util::get_uri_field(uri.c_str(), u, UF_HOST).str(); in main()
Dhttp2.cc637 if ((u.field_set & (1 << UF_HOST)) == 0) { in rewrite_location_uri()
640 auto field = &u.field_data[UF_HOST]; in rewrite_location_uri()
1627 if (u.field_set & (1 << UF_HOST)) { in construct_push_component()
1628 auto auth = util::get_uri_field(uri.c_str(), u, UF_HOST); in construct_push_component()
Dshrpx_https_upstream.cc260 assert(u.field_set & (1 << UF_HOST)); in rewrite_request_host_path_from_uri()
264 auto authority = util::get_uri_field(uri.c_str(), u, UF_HOST); in rewrite_request_host_path_from_uri()
428 if (!(u.field_set & (1 << UF_SCHEMA)) || !(u.field_set & (1 << UF_HOST))) { in htp_hdrs_completecb()
Dh2load.cc1906 !util::has_uri_field(u, UF_SCHEMA) || !util::has_uri_field(u, UF_HOST)) { in parse_base_uri()
1911 config.host = util::get_uri_field(base_uri.c_str(), u, UF_HOST).str(); in parse_base_uri()
Dshrpx_config.cc3299 if (u.field_set & UF_HOST) { in parse_config()
3301 config->balloc, util::get_uri_field(optarg.c_str(), u, UF_HOST)); in parse_config()