/third_party/curl/lib/ |
H A D | altsvc.c | 33 #include "altsvc.h" 86 static void altsvc_free(struct altsvc *as) in altsvc_free() 93 static struct altsvc *altsvc_createid(const char *srchost, in altsvc_createid() 100 struct altsvc *as = calloc(1, sizeof(struct altsvc)); in altsvc_createid() 147 static struct altsvc *altsvc_create(char *srchost, in altsvc_create() 187 struct altsvc *as; in altsvc_add() 215 /* we need a private copy of the file name so that the altsvc cache file in altsvc_load() 250 * Write this single altsvc entry to a single output line 253 static CURLcode altsvc_out(struct altsvc *a 351 struct altsvcinfo *altsvc = *altsvcp; Curl_altsvc_cleanup() local 366 Curl_altsvc_save(struct Curl_easy *data, struct altsvcinfo *altsvc, const char *file) Curl_altsvc_save() argument [all...] |
H A D | altsvc.h | 45 struct altsvc { struct 66 void Curl_altsvc_cleanup(struct altsvcinfo **altsvc); 68 struct altsvcinfo *altsvc, const char *value, 74 struct altsvc **dstentry,
|
H A D | url.c | 119 #include "altsvc.h" 3099 struct altsvc *as;
|
/third_party/nghttp2/src/ |
H A D | shrpx_http.cc | 232 for (auto &altsvc : altsvcs) { in create_altsvc_header_value() 233 len += util::percent_encode_tokenlen(altsvc.protocol_id); in create_altsvc_header_value() 235 len += util::quote_stringlen(altsvc.host); in create_altsvc_header_value() 237 len += altsvc.service.size(); in create_altsvc_header_value() 239 if (!altsvc.params.empty()) { in create_altsvc_header_value() 241 len += altsvc.params.size(); in create_altsvc_header_value() 252 for (auto &altsvc : altsvcs) { in create_altsvc_header_value() 253 p = util::percent_encode_token(p, altsvc.protocol_id); in create_altsvc_header_value() 255 p = util::quote_string(p, altsvc.host); in create_altsvc_header_value() 257 p = std::copy(std::begin(altsvc in create_altsvc_header_value() [all...] |
H A D | app_helper.cc | 355 auto altsvc = static_cast<nghttp2_ext_altsvc *>(frame->ext.payload); in print_frame() local 358 static_cast<int>(altsvc->origin_len), altsvc->origin, in print_frame() 359 static_cast<int>(altsvc->field_value_len), altsvc->field_value); in print_frame()
|
H A D | shrpx_config.cc | 427 int parse_altsvc(AltSvc &altsvc, const StringRef &opt, in parse_altsvc() argument 450 altsvc.protocol_id = make_string_ref(config->balloc, tokens[0]); in parse_altsvc() 452 altsvc.port = port; in parse_altsvc() 453 altsvc.service = make_string_ref(config->balloc, tokens[1]); in parse_altsvc() 457 altsvc.host = make_string_ref(config->balloc, tokens[2]); in parse_altsvc() 462 altsvc.origin = make_string_ref(config->balloc, tokens[3]); in parse_altsvc() 467 altsvc.params = make_string_ref(config->balloc, tokens[4]); in parse_altsvc() 3402 AltSvc altsvc{}; in parse_config() 3404 if (parse_altsvc(altsvc, opt, optarg) != 0) { in parse_config() 3408 config->http.altsvcs.push_back(std::move(altsvc)); in parse_config() [all...] |
/third_party/nghttp2/lib/ |
H A D | nghttp2_frame.c | 202 nghttp2_ext_altsvc *altsvc; in nghttp2_frame_altsvc_init() local 207 altsvc = frame->payload; in nghttp2_frame_altsvc_init() 208 altsvc->origin = origin; in nghttp2_frame_altsvc_init() 209 altsvc->origin_len = origin_len; in nghttp2_frame_altsvc_init() 210 altsvc->field_value = field_value; in nghttp2_frame_altsvc_init() 211 altsvc->field_value_len = field_value_len; in nghttp2_frame_altsvc_init() 215 nghttp2_ext_altsvc *altsvc; in nghttp2_frame_altsvc_free() local 217 altsvc = frame->payload; in nghttp2_frame_altsvc_free() 218 if (altsvc == NULL) { in nghttp2_frame_altsvc_free() 221 /* We use the same buffer for altsvc in nghttp2_frame_altsvc_free() 718 nghttp2_ext_altsvc *altsvc; nghttp2_frame_pack_altsvc() local 749 nghttp2_ext_altsvc *altsvc; nghttp2_frame_unpack_altsvc_payload() local [all...] |
H A D | nghttp2_submit.c | 512 nghttp2_ext_altsvc *altsvc; in nghttp2_submit_altsvc() local 563 altsvc = &item->ext_frame_payload.altsvc; in nghttp2_submit_altsvc() 566 frame->ext.payload = altsvc; in nghttp2_submit_altsvc()
|
H A D | nghttp2_frame.h | 74 nghttp2_ext_altsvc altsvc; member
|
H A D | nghttp2_session.c | 5222 nghttp2_ext_altsvc *altsvc; in nghttp2_session_on_altsvc_received() local 5225 altsvc = frame->ext.payload; in nghttp2_session_on_altsvc_received() 5230 if (altsvc->origin_len == 0) { in nghttp2_session_on_altsvc_received() 5235 if (altsvc->origin_len > 0) { in nghttp2_session_on_altsvc_received() 5250 if (altsvc->field_value_len == 0) { in nghttp2_session_on_altsvc_received() 6277 iframe->frame.ext.payload = &iframe->ext_frame_payload.altsvc; in nghttp2_session_mem_recv()
|
/third_party/node/deps/nghttp2/lib/ |
H A D | nghttp2_frame.c | 202 nghttp2_ext_altsvc *altsvc; in nghttp2_frame_altsvc_init() local 207 altsvc = frame->payload; in nghttp2_frame_altsvc_init() 208 altsvc->origin = origin; in nghttp2_frame_altsvc_init() 209 altsvc->origin_len = origin_len; in nghttp2_frame_altsvc_init() 210 altsvc->field_value = field_value; in nghttp2_frame_altsvc_init() 211 altsvc->field_value_len = field_value_len; in nghttp2_frame_altsvc_init() 215 nghttp2_ext_altsvc *altsvc; in nghttp2_frame_altsvc_free() local 217 altsvc = frame->payload; in nghttp2_frame_altsvc_free() 218 if (altsvc == NULL) { in nghttp2_frame_altsvc_free() 221 /* We use the same buffer for altsvc in nghttp2_frame_altsvc_free() 718 nghttp2_ext_altsvc *altsvc; nghttp2_frame_pack_altsvc() local 749 nghttp2_ext_altsvc *altsvc; nghttp2_frame_unpack_altsvc_payload() local [all...] |
H A D | nghttp2_submit.c | 512 nghttp2_ext_altsvc *altsvc; in nghttp2_submit_altsvc() local 563 altsvc = &item->ext_frame_payload.altsvc; in nghttp2_submit_altsvc() 566 frame->ext.payload = altsvc; in nghttp2_submit_altsvc()
|
H A D | nghttp2_frame.h | 74 nghttp2_ext_altsvc altsvc; member
|
H A D | nghttp2_session.c | 5217 nghttp2_ext_altsvc *altsvc; in nghttp2_session_on_altsvc_received() local 5220 altsvc = frame->ext.payload; in nghttp2_session_on_altsvc_received() 5225 if (altsvc->origin_len == 0) { in nghttp2_session_on_altsvc_received() 5230 if (altsvc->origin_len > 0) { in nghttp2_session_on_altsvc_received() 5245 if (altsvc->field_value_len == 0) { in nghttp2_session_on_altsvc_received() 6272 iframe->frame.ext.payload = &iframe->ext_frame_payload.altsvc; in nghttp2_session_mem_recv()
|
/third_party/curl/src/ |
H A D | tool_cfgable.h | 53 char *altsvc; /* alt-svc cache file name */ member
|
H A D | tool_cfgable.c | 56 Curl_safefree(config->altsvc); in free_config_fields()
|
H A D | tool_operate.c | 2182 if(config->altsvc) in single_transfer() 2183 my_setopt_str(curl, CURLOPT_ALTSVC, config->altsvc); in single_transfer()
|
H A D | tool_getparam.c | 1982 err = getstr(&config->altsvc, nextarg, ALLOW_BLANK); in getparameter()
|
/third_party/nghttp2/tests/ |
H A D | nghttp2_frame_test.c | 450 nghttp2_ext_altsvc altsvc, oaltsvc; in test_nghttp2_frame_pack_altsvc() local 464 frame.payload = &altsvc; in test_nghttp2_frame_pack_altsvc()
|
/third_party/node/src/ |
H A D | node_http2.cc | 1475 nghttp2_ext_altsvc* altsvc = static_cast<nghttp2_ext_altsvc*>(ext.payload); in HandleAltSvcFrame() local 1476 Debug(this, "handling altsvc frame"); in HandleAltSvcFrame() 1480 OneByteString(isolate, altsvc->origin, altsvc->origin_len), in HandleAltSvcFrame() 1481 OneByteString(isolate, altsvc->field_value, altsvc->field_value_len) in HandleAltSvcFrame() 3161 SET_FUNCTION(7, altsvc) in SetCallbackFunctions() 3267 SetProtoMethod(isolate, session, "altsvc", Http2Session::AltSvc); in Initialize()
|
/third_party/node/lib/internal/http2/ |
H A D | core.js | 454 case 'altsvc': 475 case 'altsvc': 622 debugSessionObj(session, 'altsvc received: stream: %d, origin: %s, alt: %s', 625 session.emit('altsvc', alt, origin, stream); 1633 // Submits an altsvc frame to be sent to the client. `stream` is a 1635 // the origin. alt is a string containing the altsvc details. No fancy 1637 altsvc(alt, originOrStream) { 1680 this[kHandle].altsvc(stream, origin || '', alt);
|