/third_party/node/test/parallel/ |
H A D | test-http2-connect.js | 22 const authority = `http://localhost:${server.address().port}`; 28 clients.add(connect(authority)); 29 clients.add(connect(authority, options)); 30 clients.add(connect(authority, options, listener())); 31 clients.add(connect(authority, listener())); 52 const authority = `http://localhost:${port}`; 55 connect(authority, options, mustCall(onSessionConnect)); 69 const authority = 'https://localhost'; 72 connect(authority).on('error', () => {}); 86 const authority [all...] |
H A D | test-http2-window-size.js | 49 authority: 'localhost',
|
/third_party/curl/lib/ |
H A D | http_proxy.c | 90 char *authority = NULL; in Curl_http_proxy_create_CONNECT() local 100 authority = aprintf("%s%s%s:%d", ipv6_ip?"[":"", hostname, in Curl_http_proxy_create_CONNECT() 102 if(!authority) { in Curl_http_proxy_create_CONNECT() 108 NULL, 0, authority, strlen(authority), in Curl_http_proxy_create_CONNECT() 115 req->authority, TRUE); in Curl_http_proxy_create_CONNECT() 122 result = Curl_dynhds_cadd(&req->headers, "Host", authority); in Curl_http_proxy_create_CONNECT() 156 free(authority); in Curl_http_proxy_create_CONNECT()
|
H A D | cf-h1-proxy.c | 233 infof(data, "Establish HTTP proxy tunnel to %s", req->authority); in start_CONNECT() 543 char *authority; /* for CONNECT, the destination host + port */ in CONNECT_host() local 544 char *host_header = NULL; /* Host: authority */ in CONNECT_host() 550 authority = aprintf("%s%s%s:%d", ipv6_ip?"[":"", hostname, ipv6_ip?"]":"", in CONNECT_host() 552 if(!authority) in CONNECT_host() 557 host_header = aprintf("Host: %s\r\n", authority); in CONNECT_host() 559 free(authority); in CONNECT_host() 563 *pauthority = authority; in CONNECT_host() 584 char *authority = NULL; /* for CONNECT */ in start_CONNECT() local 670 result = CONNECT_host(cf, data, &authority, in start_CONNECT() [all...] |
H A D | http1.c | 139 const char *p, *m, *target, *hv, *scheme, *authority, *path; in start_req() local 177 * authority-form: host+port for CONNECT in start_req() 180 * from TARGET, we derive `scheme` `authority` `path` in start_req() 183 * authority-form -- TARGET -- in start_req() 186 scheme = authority = path = NULL; in start_req() 195 /* authority-form */ in start_req() 196 authority = target; in start_req() 253 authority, authority_len, path, path_len); in start_req() 330 req->authority? req->authority in Curl_h1_req_write_head() [all...] |
H A D | urlapi-int.h | 31 CURLUcode Curl_url_set_authority(CURLU *u, const char *authority,
|
H A D | http.h | 268 char *authority; member 280 const char *authority, size_t a_len, 291 #define HTTP_PSEUDO_AUTHORITY ":authority" 300 * - if `authority` is set, any "Host" header is removed. 301 * - if `authority` is unset and a "Host" header is present, use 302 * that as `authority` and remove "Host"
|
H A D | http.c | 4600 const char *authority, size_t a_len, in Curl_http_req_make() 4619 if(authority) { in Curl_http_req_make() 4620 req->authority = Curl_memdup0(authority, a_len); in Curl_http_req_make() 4621 if(!req->authority) in Curl_http_req_make() 4654 req->authority = NULL; in req_assign_url_authority() 4692 req->authority = strdup(Curl_dyn_ptr(&buf)); in req_assign_url_authority() 4693 if(!req->authority) in req_assign_url_authority() 4802 free(req->authority); in Curl_http_req_free() 4840 const char *scheme = NULL, *authority in Curl_http_req_to_h2() local 4597 Curl_http_req_make(struct httpreq **preq, const char *method, size_t m_len, const char *scheme, size_t s_len, const char *authority, size_t a_len, const char *path, size_t p_len) Curl_http_req_make() argument [all...] |
/third_party/nghttp2/src/ |
H A D | shrpx_http2_upstream.cc | 349 auto authority = req.fs.header(http2::HD__AUTHORITY); in on_request_headers() local 364 // For HTTP/2 proxy, we require :authority. in on_request_headers() 366 faddr->alt_mode == UpstreamAltMode::NONE && !authority) { in on_request_headers() 376 // nghttp2 library guarantees either :authority or host exist in on_request_headers() 377 if (!authority) { in on_request_headers() 379 authority = req.fs.header(http2::HD_HOST); in on_request_headers() 382 if (authority) { in on_request_headers() 383 req.authority = authority->value; in on_request_headers() 458 if (downstream_queue_.can_activate(downstream->request().authority)) { in start_downstream() 1979 auto authority = util::extract_host(req.authority); redirect_to_https() local 2156 StringRef scheme, authority, path; prepare_push_promise() local 2187 submit_push_promise(const StringRef &scheme, const StringRef &authority, const StringRef &path, Downstream *downstream) submit_push_promise() argument 2275 StringRef scheme, authority, path; initiate_push() local [all...] |
H A D | shrpx_https_upstream.cc | 163 req.authority = in htp_uricb() 164 concat_string_ref(balloc, req.authority, StringRef{data, len}); in htp_uricb() 263 // rewrite host header field with authority component. 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() local 266 auto ipv6 = std::find(std::begin(authority), std::end(authority), ':') != in rewrite_request_host_path_from_uri() 267 std::end(authority); in rewrite_request_host_path_from_uri() 268 auto authoritylen = authority.size(); in rewrite_request_host_path_from_uri() 275 if (authoritylen > authority.size()) { in rewrite_request_host_path_from_uri() 281 p = std::copy(std::begin(authority), st in rewrite_request_host_path_from_uri() 1418 auto authority = util::extract_host(req.authority); redirect_to_https() local [all...] |
H A D | shrpx_http2_downstream_connection.cc | 265 // For HTTP/1.0 request, there is no authority in request. In that in push_request_headers() 267 auto authority = StringRef(downstream_hostport); in push_request_headers() local 269 if (no_host_rewrite && !req.authority.empty()) { in push_request_headers() 270 authority = req.authority; in push_request_headers() 273 downstream_->set_request_downstream_host(authority); in push_request_headers() 284 // 4. :authority (or host) in push_request_headers() 323 nva.push_back(http2::make_nv_ls_nocopy(":authority", authority)); in push_request_headers() 325 nva.push_back(http2::make_nv_ls_nocopy("host", authority)); in push_request_headers() [all...] |
H A D | shrpx_downstream.h | 189 // Request authority. This is HTTP/2 :authority header field value 191 // HTTP/1 request. We also store authority-form HTTP/1 request. 194 StringRef authority; member 199 // This is original authority which cannot be changed by per-pattern 226 // true if request does not have any information about authority. 227 // This happens when: For HTTP/2 request, :authority is missing. 231 // orig_authority and orig_path have the authority and path which 252 // returns true if a resource denoted by scheme, authority, and path 254 bool is_resource_pushed(const StringRef &scheme, const StringRef &authority, in is_resource_pushed() [all...] |
H A D | http2_test.cc | 323 http2::lookup_token(StringRef::from_lit(":authority"))); in test_http2_lookup_token() 1120 StringRef scheme, authority, path; 1125 CU_ASSERT(0 == http2::construct_push_component(balloc, scheme, authority, 1128 CU_ASSERT("example.org" == authority); 1132 authority = StringRef{}; 1137 CU_ASSERT(0 == http2::construct_push_component(balloc, scheme, authority, 1140 CU_ASSERT("" == authority); 1144 authority = StringRef{}; 1149 CU_ASSERT(0 == http2::construct_push_component(balloc, scheme, authority, 1152 CU_ASSERT("" == authority); [all...] |
H A D | shrpx_mruby_module_request.cc | 110 return mrb_str_new(mrb, req.authority.c_str(), req.authority.size()); in request_get_authority() 124 const char *authority; in request_set_authority() local 126 mrb_get_args(mrb, "s", &authority, &n); in request_set_authority() 128 mrb_raise(mrb, E_RUNTIME_ERROR, "authority must not be empty string"); in request_set_authority() 131 req.authority = in request_set_authority() 132 make_string_ref(balloc, StringRef{authority, static_cast<size_t>(n)}); in request_set_authority() 342 mrb_define_method(mrb, request_class, "authority", request_get_authority, in init_request_class() 344 mrb_define_method(mrb, request_class, "authority=", request_set_authority, in init_request_class()
|
H A D | HttpServer.cc | 480 nghttp2_rcbuf_decref(rcbuf.authority); in ~Stream() 1016 auto authority = stream->header.authority; in submit_push_promise() local 1018 if (authority.empty()) { in submit_push_promise() 1019 authority = stream->header.host; in submit_push_promise() 1028 http2::make_nv_ls_nocopy(":authority", authority)); in submit_push_promise() 1044 promised_header.authority = in submit_push_promise() 1045 make_string_ref(promised_stream->balloc, authority); in submit_push_promise() 1215 auto authority in prepare_redirect_response() local [all...] |
H A D | shrpx_log.cc | 546 if (req.authority.empty()) { in construct_absolute_request_uri() 550 auto len = req.authority.size() + req.path.size(); in construct_absolute_request_uri() 568 p = std::copy(std::begin(req.authority), std::end(req.authority), p); in construct_absolute_request_uri() 599 req.method == HTTP_CONNECT ? req.authority in upstream_accesslog() 673 if (!req.authority.empty()) { in upstream_accesslog() 674 std::tie(p, last) = copy(req.authority, p, last); in upstream_accesslog()
|
H A D | shrpx_client_handler.cc | 1052 StringRef authority, path; in get_downstream_connection() local 1056 authority = req.orig_authority; in get_downstream_connection() 1061 authority = sni_; in get_downstream_connection() 1062 } else if (!req.authority.empty()) { in get_downstream_connection() 1063 authority = req.authority; in get_downstream_connection() 1067 authority = h->value; in get_downstream_connection() 1078 // Cache the authority and path used for the first-time backend in get_downstream_connection() 1080 req.orig_authority = authority; in get_downstream_connection() 1089 group_idx = match_downstream_addr_group(routerconf, authority, pat in get_downstream_connection() [all...] |
H A D | shrpx_http_downstream_connection.cc | 489 // For HTTP/1.0 request, there is no authority in request. In that in push_request_headers() 491 auto authority = StringRef(downstream_hostport); in push_request_headers() local 495 if (no_host_rewrite && !req.authority.empty()) { in push_request_headers() 496 authority = req.authority; in push_request_headers() 499 downstream_->set_request_downstream_host(authority); in push_request_headers() 510 buf->append(authority); in push_request_headers() 517 buf->append(authority); in push_request_headers() 526 buf->append(authority); in push_request_headers() 619 handler->get_forwarded_for(), req.authority, re in push_request_headers() [all...] |
H A D | HttpServer.h | 123 StringRef authority; member 132 nghttp2_rcbuf *authority; member
|
/third_party/nghttp2/integration-tests/ |
H A D | server_tester.go | 60 authority string // server's host:port 198 authority := fmt.Sprintf("127.0.0.1:%v", opts.connectPort) 204 url: fmt.Sprintf("%v://%v", scheme, authority), 208 authority: authority, 224 conn, err := net.Dial("tcp", authority) 328 authority string // authority, defaults to backend server address 509 authority := st.authority [all...] |
/third_party/curl/tests/unit/ |
H A D | unit2603.c | 45 const char *authority; member 109 check_eq(p.req->authority, t->authority, "authority"); in parse_success()
|
/third_party/nghttp2/examples/ |
H A D | libevent-client.c | 77 /* The authority portion of the |uri|, not NULL-terminated */ 78 char *authority; member 82 /* The length of the |authority| */ 108 stream_data->authority = malloc(stream_data->authoritylen + extra); in create_http2_stream_data() 109 memcpy(stream_data->authority, &uri[u->field_data[UF_HOST].off], in create_http2_stream_data() 113 (size_t)snprintf(stream_data->authority + u->field_data[UF_HOST].len, in create_http2_stream_data() 147 free(stream_data->authority); in delete_http2_stream_data() 424 MAKE_NV(":authority", stream_data->authority, stream_data->authoritylen), in submit_request()
|
/third_party/ffmpeg/libavformat/ |
H A D | url.h | 352 const char *authority; /**< "//" if it is a real URL */ member 362 #define url_component_end_scheme authority 393 * @note url_src and url_dst should share the same protocol and authority.
|
/third_party/node/lib/internal/http2/ |
H A D | core.js | 231 const kAuthority = Symbol('authority'); 3261 function connect(authority, options, listener) { 3270 if (typeof authority === 'string') 3271 authority = new URL(authority); 3273 assertIsObject(authority, 'authority', ['string', 'Object', 'URL']); 3275 const protocol = authority.protocol || options.protocol || 'https:'; 3276 const port = '' + (authority.port !== '' ? 3277 authority [all...] |
/third_party/lzma/CPP/7zip/UI/Common/ |
H A D | PropIDUtils.cpp | 403 const UInt32 authority = GetBe32(p + 4);
in ParseSid() local 405 if (p[2] == 0 && p[3] == 0 && authority == 5 && num >= 1)
in ParseSid() 451 s.Add_UInt32(authority);
in ParseSid()
|