Home
last modified time | relevance | path

Searched full:http2 (Results 1 – 25 of 617) sorted by relevance

12345678910>>...25

/third_party/nghttp2/src/
Dhttp2_test.cc35 #include "http2.h"
60 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()
[all …]
Dasio_server_http2.cc39 http2::http2() : impl_(std::make_unique<http2_impl>()) {} in http2() function in nghttp2::asio_http2::server::http2
41 http2::~http2() {} in ~http2()
43 http2::http2(http2 &&other) noexcept : impl_(std::move(other.impl_)) {} in http2() function in nghttp2::asio_http2::server::http2
45 http2 &http2::operator=(http2 &&other) noexcept { in operator =()
55 boost::system::error_code http2::listen_and_serve(boost::system::error_code &ec, in listen_and_serve()
62 boost::system::error_code http2::listen_and_serve( in listen_and_serve()
68 void http2::num_threads(size_t num_threads) { impl_->num_threads(num_threads); } in num_threads()
70 void http2::backlog(int backlog) { impl_->backlog(backlog); } in backlog()
72 void http2::tls_handshake_timeout(const boost::posix_time::time_duration &t) { in tls_handshake_timeout()
76 void http2::read_timeout(const boost::posix_time::time_duration &t) { in read_timeout()
[all …]
Dshrpx_http2_downstream_connection.cc42 #include "http2.h"
205 http2::copy_headers_to_nva_nocopy(nva, trailers, http2::HDOP_STRIP_ALL); in http2_data_read_callback()
235 // The HTTP2 session to the backend has not been established or in push_request_headers()
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()
[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_http2_upstream.cc44 #include "http2.h"
169 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()
[all …]
/third_party/nghttp2/
Dgennghttpxfun.py14 "http2-max-concurrent-streams",
17 "http2-proxy",
18 "http2-bridge",
23 "frontend-http2-read-timeout",
36 "frontend-http2-window-bits",
37 "backend-http2-window-bits",
38 "frontend-http2-connection-window-bits",
39 "backend-http2-connection-window-bits",
68 "frontend-http2-dump-request-header",
69 "frontend-http2-dump-response-header",
[all …]
/third_party/grpc/src/core/lib/debug/
Dstats_data.yaml107 doc: Number of batches received by HTTP2 transport
109 doc: Number of cancelations received by HTTP2 transport
125 doc: Size of messages received by HTTP2 transport
145 doc: Number of HTTP2 pings sent by process
147 doc: Number of HTTP2 writes initiated
149 doc: Number of HTTP2 writes offloaded to the executor from application threads
151 doc: Number of HTTP2 writes that finished seeing more data needed to be
154 doc: Number of HTTP2 writes that were made knowing there was still more data
157 doc: Number of HTTP2 writes initiated due to 'initial_write'
159 doc: Number of HTTP2 writes initiated due to 'start_new_stream'
[all …]
Dstats_data.cc159 "Number of batches received by HTTP2 transport",
160 "Number of cancelations received by HTTP2 transport",
168 "Number of HTTP2 pings sent by process",
169 "Number of HTTP2 writes initiated",
170 "Number of HTTP2 writes offloaded to the executor from application threads",
171 "Number of HTTP2 writes that finished seeing more data needed to be "
173 "Number of HTTP2 writes that were made knowing there was still more data "
175 "Number of HTTP2 writes initiated due to 'initial_write'",
176 "Number of HTTP2 writes initiated due to 'start_new_stream'",
177 "Number of HTTP2 writes initiated due to 'send_message'",
[all …]
/third_party/nghttp2/doc/bash_completion/
Dnghttpx11http2-dump-response-header --tls-ticket-key-file --verify-client-cacert --max-response-header-fiel…
/third_party/nghttp2/integration-tests/
Dnghttpx_http2_test.go8 "golang.org/x/net/http2"
9 "golang.org/x/net/http2/hpack"
26 res, err := st.http2(requestParam{
30 t.Fatalf("Error st.http2() = %v", err)
50 res, err := st.http2(requestParam{
57 t.Fatalf("Error st.http2() = %v", err)
75 res, err := st.http2(requestParam{
82 t.Fatalf("Error st.http2() = %v", err)
100 res, err := st.http2(requestParam{
107 t.Fatalf("Error st.http2() = %v", err)
[all …]
/third_party/node/doc/api/
Dhttp2.md16 <!-- source_link=lib/http2.js -->
18 The `http2` module provides an implementation of the [HTTP/2][] protocol. It
22 const http2 = require('http2');
32 The `http2` Core API is much more symmetric between client and server than the
41 [`http2.createSecureServer()`][] is necessary when communicating
45 const http2 = require('http2');
48 const server = http2.createSecureServer({
78 const http2 = require('http2');
80 const client = http2.connect('https://localhost:8443', {
110 Instances of the `http2.Http2Session` class represent an active communications
[all …]
Dhttp2.json3 "source": "doc/api/http2.md",
28http2.js\">lib/http2.js</a></p>\n<p>The <code>http2</code> module provides an implementation of th…
33 …=\"#http2_compatibility_api\">Compatibility API</a> is.</p>\n<p>The <code>http2</code> Core API is…
38http2.github.io/faq/#does-http2-require-encryption\">unencrypted HTTP/2</a>, the use of\n<a href=\…
45 …<pre><code class=\"language-js\">const http2 = require('http2');\nconst fs = require('fs');\nconst…
52 …</li>\n</ul>\n<pre><code class=\"language-js\">const http2 = require('http2');\nconst server = htt…
57HTTP2 headers can be marked as sensitive, which means that the HTTP/2\nheader compression algorith…
85 … "<p>The <code>http2.getDefaultSettings()</code>, <code>http2.getPackedSettings()</code>,\n<code>h…
92 …re several types of error conditions that may arise when using the\n<code>http2</code> module:</p>…
106 …/code>:</p>\n<pre><code class=\"language-js\">const http2 = require('http2');\n\nconst client = ht…
[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-server-startup.js4 // HTTP2 server. The server does not do anything at this point
14 const http2 = require('http2'); constant
24 const serverTLS = http2.createSecureServer(options, () => {});
30 const server = http2.createServer(options, common.mustNotCall());
39 const server = http2.createServer();
52 // Test that `http2.createServer()` supports `net.Server` options.
54 const server = http2.createServer({ allowHalfOpen: true });
74 const server = http2.createSecureServer(options);
91 // Test that `http2.createSecureServer()` supports `net.Server` options.
93 const server = http2.createSecureServer({
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-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-server-sessionerror.js8 const http2 = require('http2'); constant
9 const { kSocket } = require('internal/http2/util');
11 const server = http2.createServer();
37 http2.connect(url)
44 http2.connect(url)
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-createsecureserver-options.js8 const http2 = require('http2'); constant
14 () => http2.createSecureServer(invalidOption),
27 () => http2.createSecureServer({ settings: invalidSettingsOption }),
37 // Test that http2.createSecureServer validates input options.
74 () => http2.createSecureServer({ [opt]: val }),
Dtest-http2-createserver-options.js8 const http2 = require('http2'); constant
14 () => http2.createServer(invalidOption),
27 () => http2.createServer({ settings: invalidSettingsOption }),
37 // Test that http2.createServer validates input options.
74 () => http2.createServer({ [opt]: val }),
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-server-timeout.js6 const http2 = require('http2'); constant
9 const server = http2.createServer();
21 const client = http2.connect(url);
23 const client2 = http2.connect(url);
/third_party/nghttp2/python/
Dnghttp2.pyx351 cdef http2 = <_HTTP2SessionCoreBase>user_data
363 cdef http2 = <_HTTP2SessionCoreBase>user_data
405 cdef http2 = <_HTTP2SessionCore>user_data
407 handler = http2._make_handler(frame.hd.stream_id)
425 cdef http2 = <_HTTP2SessionCore>user_data
437 return http2._rst_stream(frame.hd.stream_id)
453 return http2._rst_stream(frame.hd.stream_id)
456 http2._stop_settings_timer()
464 cdef http2 = <_HTTP2SessionCoreBase>user_data
474 return http2._rst_stream(stream_id)
[all …]
/third_party/grpc/doc/
DPROTOCOL-WEB.md6 [native gRPC protocol](PROTOCOL-HTTP2.md).
13 [native gRPC protocol](PROTOCOL-HTTP2.md).
34 # Protocol differences vs [gRPC over HTTP2](PROTOCOL-HTTP2.md)
56 HTTP/2 related behavior (specified in [gRPC over HTTP2](PROTOCOL-HTTP2.md))
63 Message framing (vs. [http2-transport-mapping](PROTOCOL-HTTP2.md#http2-transport-mapping))
89 …pc-web-javascript/0.1 (follow the same format as specified in [gRPC over HTTP2](PROTOCOL-HTTP2.md))
/third_party/node/tools/doc/
Dtype-parser.mjs104 'ClientHttp2Session': 'http2.html#http2_class_clienthttp2session',
105 'ClientHttp2Stream': 'http2.html#http2_class_clienthttp2stream',
106 'HTTP/2 Headers Object': 'http2.html#http2_headers_object',
107 'HTTP/2 Settings Object': 'http2.html#http2_settings_object',
108 'http2.Http2ServerRequest': 'http2.html#http2_class_http2_http2serverrequest',
109 'http2.Http2ServerResponse':
110 'http2.html#http2_class_http2_http2serverresponse',
111 'Http2SecureServer': 'http2.html#http2_class_http2secureserver',
112 'Http2Server': 'http2.html#http2_class_http2server',
113 'Http2Session': 'http2.html#http2_class_http2session',
[all …]

12345678910>>...25