Home
last modified time | relevance | path

Searched refs:http2 (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/third_party/nghttp2/src/
Dhttp2_test.cc60 http2::add_header(nva, (const uint8_t *)"alpha", 5, (const uint8_t *)"123", 3, in test_http2_add_header()
67 http2::add_header(nva, (const uint8_t *)"alpha", 5, (const uint8_t *)"", 0, in test_http2_add_header()
74 http2::add_header(nva, (const uint8_t *)"a", 1, (const uint8_t *)" b", 2, in test_http2_add_header()
80 http2::add_header(nva, (const uint8_t *)"a", 1, (const uint8_t *)"b ", 2, in test_http2_add_header()
86 http2::add_header(nva, (const uint8_t *)"a", 1, (const uint8_t *)" b ", 5, in test_http2_add_header()
92 http2::add_header(nva, (const uint8_t *)"a", 1, (const uint8_t *)" bravo ", in test_http2_add_header()
98 http2::add_header(nva, (const uint8_t *)"a", 1, (const uint8_t *)" ", 4, in test_http2_add_header()
104 http2::add_header(nva, (const uint8_t *)"te", 2, (const uint8_t *)"trailers", in test_http2_add_header()
105 8, false, http2::HD_TE); in test_http2_add_header()
106 CU_ASSERT(http2::HD_TE == nva[0].token); in test_http2_add_header()
[all …]
Dhttp3.cc96 case http2::HD_COOKIE: in copy_headers_to_nva_internal()
97 case http2::HD_CONNECTION: in copy_headers_to_nva_internal()
98 case http2::HD_HOST: in copy_headers_to_nva_internal()
99 case http2::HD_HTTP2_SETTINGS: in copy_headers_to_nva_internal()
100 case http2::HD_KEEP_ALIVE: in copy_headers_to_nva_internal()
101 case http2::HD_PROXY_CONNECTION: in copy_headers_to_nva_internal()
102 case http2::HD_SERVER: in copy_headers_to_nva_internal()
103 case http2::HD_TE: in copy_headers_to_nva_internal()
104 case http2::HD_TRANSFER_ENCODING: in copy_headers_to_nva_internal()
105 case http2::HD_UPGRADE: in copy_headers_to_nva_internal()
[all …]
Dshrpx_http2_downstream_connection.cc205 http2::copy_headers_to_nva_nocopy(nva, trailers, http2::HDOP_STRIP_ALL); in http2_data_read_callback()
256 auto &http2conf = config->http2; in push_request_headers()
297 nva.push_back(http2::make_nv_ll(":method", "CONNECT")); in push_request_headers()
298 nva.push_back(http2::make_nv_ll(":protocol", "websocket")); in push_request_headers()
300 nva.push_back(http2::make_nv_ls_nocopy( in push_request_headers()
301 ":method", http2::to_method_string(req.method))); in push_request_headers()
311 nva.push_back(http2::make_nv_ll(":scheme", "https")); in push_request_headers()
313 nva.push_back(http2::make_nv_ls_nocopy(":scheme", req.scheme)); in push_request_headers()
317 nva.push_back(http2::make_nv_ll(":path", "*")); in push_request_headers()
319 nva.push_back(http2::make_nv_ls_nocopy(":path", req.path)); in push_request_headers()
[all …]
Dshrpx_http2_upstream.cc169 if (config->http2.upstream.debug.frame_debug) { in on_header_callback2()
212 auto token = http2::lookup_token(namebuf.base, namebuf.len); in on_header_callback2()
336 auto &dump = config->http2.upstream.debug.dump; in on_request_headers()
339 http2::dump_nv(dump.request_header, nva); in on_request_headers()
342 auto content_length = req.fs.header(http2::HD_CONTENT_LENGTH); in on_request_headers()
349 auto authority = req.fs.header(http2::HD__AUTHORITY); in on_request_headers()
350 auto path = req.fs.header(http2::HD__PATH); in on_request_headers()
351 auto method = req.fs.header(http2::HD__METHOD); in on_request_headers()
352 auto scheme = req.fs.header(http2::HD__SCHEME); in on_request_headers()
354 auto method_token = http2::lookup_method_token(method->value); in on_request_headers()
[all …]
Dshrpx_downstream_test.cc69 StringRef::from_lit("1"), false, http2::HD__AUTHORITY); in test_downstream_field_store_header()
72 http2::HD_CONTENT_LENGTH); in test_downstream_field_store_header()
76 *fs.header(http2::HD__AUTHORITY)); in test_downstream_field_store_header()
77 CU_ASSERT(nullptr == fs.header(http2::HD__METHOD)); in test_downstream_field_store_header()
94 true, http2::HD_COOKIE); in test_downstream_crumble_request_cookie()
97 http2::HD_COOKIE); in test_downstream_crumble_request_cookie()
99 StringRef::from_lit("echo"), false, http2::HD_COOKIE); in test_downstream_crumble_request_cookie()
140 http2::HD_COOKIE); in test_downstream_assemble_request_cookie()
143 http2::HD_COOKIE); in test_downstream_assemble_request_cookie()
146 http2::HD_COOKIE); in test_downstream_assemble_request_cookie()
[all …]
Dshrpx_downstream.cc151 auto &timeoutconf = get_config()->http2.timeout; in Downstream()
315 if (kv.token != http2::HD_COOKIE || kv.value.empty()) { in assemble_request_cookie()
326 if (kv.token != http2::HD_COOKIE || kv.value.empty()) { in assemble_request_cookie()
355 if (kv.token != http2::HD_COOKIE) { in find_affinity_cookie()
399 if (kv.token != http2::HD_COOKIE) { in count_crumble_request_cookie()
419 if (kv.token != http2::HD_COOKIE) { in crumble_request_cookie()
475 item.token = http2::lookup_token(item.name); in append_last_header_key()
495 if (kv.token != http2::HD_CONTENT_LENGTH) { in parse_content_length()
542 auto token = http2::lookup_token(name_ref); in alloc_add_header_name()
572 auto token = http2::lookup_token(name_ref); in alloc_add_trailer_name()
[all …]
Dshrpx_https_upstream.cc328 req.path = http2::rewrite_clean_path(balloc, path); in rewrite_request_host_path_from_uri()
349 if (kv.token == http2::HD_TRANSFER_ENCODING && in htp_hdrs_completecb()
350 !http2::check_transfer_encoding(kv.value)) { in htp_hdrs_completecb()
370 ss << http2::to_method_string(method) << " " in htp_hdrs_completecb()
388 if (method != HTTP_CONNECT && !req.fs.header(http2::HD_TRANSFER_ENCODING)) { in htp_hdrs_completecb()
396 auto host = req.fs.header(http2::HD_HOST); in htp_hdrs_completecb()
426 auto transfer_encoding = req.fs.header(http2::HD_TRANSFER_ENCODING); in htp_hdrs_completecb()
428 http2::legacy_http1(req.http_major, req.http_minor)) { in htp_hdrs_completecb()
449 req.path = http2::rewrite_clean_path(balloc, req.path); in htp_hdrs_completecb()
993 http2::HD_CONNECTION); in send_reply()
[all …]
/third_party/node/test/parallel/
Dtest-http2-getpackedsettings.js7 const http2 = require('http2'); constant
16 const val = http2.getPackedSettings(http2.getDefaultSettings());
34 http2.getPackedSettings({ [i[0]]: i[1] });
37 http2.getPackedSettings({ enablePush: true });
38 http2.getPackedSettings({ enablePush: false });
55 http2.getPackedSettings({ [i[0]]: i[1] });
67 http2.getPackedSettings({ enablePush: i });
79 http2.getPackedSettings({ enableConnectProtocol: i });
98 const packed = http2.getPackedSettings({
115 const packed = http2.getPackedSettings();
[all …]
Dtest-http2-invalidheaderfield.js10 const http2 = require('http2'); constant
14 const server = http2.createServer(common.mustCall((req, res) => {
32 const session = http2.connect(`http://localhost:${server.address().port}`);
42 const server = http2.createServer();
44 const session = http2.connect(`http://localhost:${server.address().port}`);
59 const server = http2.createServer();
61 const session = http2.connect(`http://localhost:${server.address().port}`);
75 const server = http2.createServer();
77 const session4 = http2.connect(`http://localhost:${server.address().port}`);
Dtest-http2-client-setLocalWindowSize.js8 const http2 = require('http2'); constant
11 const server = http2.createServer();
27 const client = http2.connect(`http://localhost:${server.address().port}`);
65 const server = http2.createServer();
72 const client = http2.connect(`http://localhost:${server.address().port}`);
76 const defaultSetting = http2.getDefaultSettings();
93 const server = http2.createServer();
100 const client = http2.connect(`http://localhost:${server.address().port}`);
104 const defaultSetting = http2.getDefaultSettings();
Dtest-http2-invalidheaderfields-client.js5 const http2 = require('http2'); constant
7 const server1 = http2.createServer();
10 const session = http2.connect(`http://localhost:${server1.address().port}`);
23 const server2 = http2.createServer(common.mustCall((req, res) => {
34 const session = http2.connect(`http://localhost:${server2.address().port}`);
42 const server3 = http2.createServer(common.mustCall((req, res) => {
55 const session = http2.connect(`http://localhost:${server3.address().port}`);
Dtest-http2-compat-serverresponse-writehead-array.js7 const http2 = require('http2'); constant
12 const server = http2.createServer();
25 const client = http2.connect(`http://localhost:${port}`, common.mustCall(() => {
43 const server = http2.createServer();
53 const client = http2.connect(`http://localhost:${port}`, common.mustCall(() => {
71 const server = http2.createServer();
85 const client = http2.connect(`http://localhost:${port}`, common.mustCall(() => {
Dtest-http2-server-startup.js14 const http2 = require('http2'); constant
24 const serverTLS = http2.createSecureServer(options, () => {});
30 const server = http2.createServer(options, common.mustNotCall());
39 const server = http2.createServer();
54 const server = http2.createServer({ allowHalfOpen: true });
74 const server = http2.createSecureServer(options);
93 const server = http2.createSecureServer({
Dtest-http2-compat-write-early-hints.js7 const http2 = require('node:http2'); constant
15 const server = http2.createServer();
30 const client = http2.connect(`http://localhost:${server.address().port}`);
60 const server = http2.createServer();
78 const client = http2.connect(`http://localhost:${server.address().port}`);
111 const server = http2.createServer();
126 const client = http2.connect(`http://localhost:${server.address().port}`);
Dtest-http2-sensitive-headers.js6 const http2 = require('http2'); constant
11 const server = http2.createServer();
20 [http2.sensitiveHeaders]: ['Sensitive']
28 const client = http2.connect('http://localhost:80', {
37 assert.deepStrictEqual(headers[http2.sensitiveHeaders],
Dtest-http2-session-unref.js9 const http2 = require('http2'); constant
13 const server = http2.createServer();
32 const client = http2.connect(`http://localhost:${port}`);
38 const client = http2.connect(`http://localhost:${port}`);
48 const client = http2.connect(`http://localhost:${port}`, {
Dtest-http2-compat-expect-continue.js7 const http2 = require('http2'); constant
16 const server = http2.createServer();
30 const client = http2.connect(`http://localhost:${server.address().port}`);
62 const server = http2.createServer();
71 const client = http2.connect(`http://localhost:${server.address().port}`);
Dtest-http2-propagate-session-destroy-code.js8 const http2 = require('http2'); constant
9 const server = http2.createServer();
11 const destroyCode = http2.constants.NGHTTP2_REFUSED_STREAM;
36 const session = http2.connect(`http://localhost:${server.address().port}`);
44 const stream = session.request({ [http2.constants.HTTP2_HEADER_PATH]: '/' });
Dtest-http2-zero-length-header.js7 const http2 = require('http2'); constant
9 const server = http2.createServer();
18 [http2.sensitiveHeaders]: []
24 const client = http2.connect(`http://localhost:${server.address().port}/`);
Dtest-http2-too-many-headers.js6 const http2 = require('http2'); constant
10 } = http2.constants;
16 const server = http2.createServer({ maxHeaderListPairs: 0 });
20 const client = http2.connect(`http://localhost:${server.address().port}`);
/third_party/nghttp2/doc/bash_completion/
Dnghttpx11http2-read-timeout --frontend-http3-read-timeout --frontend-read-timeout --frontend-write-timeout …
/third_party/nghttp2/integration-tests/
Dnghttpx_http2_test.go26 res, err := st.http2(requestParam{
53 res, err := st.http2(requestParam{
85 res, err := st.http2(requestParam{
113 res, err := st.http2(requestParam{
141 res, err := st.http2(requestParam{
171 res, err := st.http2(requestParam{
198 res, err := st.http2(requestParam{
226 res, err := st.http2(requestParam{
259 res, err := st.http2(requestParam{
291 res, err := st.http2(requestParam{
[all …]
/third_party/node/doc/api/
Dhttp2.md24 <!-- source_link=lib/http2.js -->
26 The `node:http2` module provides an implementation of the [HTTP/2][] protocol.
30 const http2 = require('node:http2');
36 `node:crypto` module. In such cases, attempting to `import` from `node:http2` or
37 calling `require('node:http2')` will result in an error being thrown.
42 let http2;
44 http2 = require('node:http2');
46 console.error('http2 support is disabled!');
60 let http2;
62 http2 = await import('node:http2');
[all …]
/third_party/curl/docs/cmdline-opts/
Dhttp2-prior-knowledge.md4 Long: http2-prior-knowledge
8 Mutexed: http1.1 http1.0 http2 http3
14 - http2
17 - --http2-prior-knowledge $URL
20 # `--http2-prior-knowledge`
/third_party/node/test/internet/
Dtest-http2-issue-32922.js7 const http2 = require('http2'); constant
12 } = http2.constants;
16 http2.connect('https://google.com', (clientSession) => {
36 http2.connect('https://google.com', { socket2 }, (clientSession) => {
57 http2.connect('https://google.com', { socket }, (clientSession) => {

12345678910>>...12