/third_party/nghttp2/src/ |
D | http2_test.cc | 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() 106 CU_ASSERT(http2::HD_TE == nva[0].token); in test_http2_add_header() [all …]
|
D | asio_server_http2.cc | 39 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 …]
|
D | shrpx_http2_downstream_connection.cc | 205 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 …]
|
D | shrpx_downstream_test.cc | 69 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 …]
|
D | shrpx_http2_upstream.cc | 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() 354 auto method_token = http2::lookup_method_token(method->value); in on_request_headers() [all …]
|
D | shrpx_downstream.cc | 150 auto &timeoutconf = get_config()->http2.timeout; in Downstream() 305 if (kv.token != http2::HD_COOKIE || kv.value.empty()) { in assemble_request_cookie() 316 if (kv.token != http2::HD_COOKIE || kv.value.empty()) { in assemble_request_cookie() 345 if (kv.token != http2::HD_COOKIE) { in find_affinity_cookie() 389 if (kv.token != http2::HD_COOKIE) { in count_crumble_request_cookie() 409 if (kv.token != http2::HD_COOKIE) { in crumble_request_cookie() 465 item.token = http2::lookup_token(item.name); in append_last_header_key() 485 if (kv.token != http2::HD_CONTENT_LENGTH) { in parse_content_length() 532 auto token = http2::lookup_token(name_ref); in alloc_add_header_name() 562 auto token = http2::lookup_token(name_ref); in alloc_add_trailer_name() [all …]
|
D | asio_server_http2_handler.cc | 89 switch (nghttp2::http2::lookup_token(name, namelen)) { in on_header_callback() 90 case nghttp2::http2::HD__METHOD: in on_header_callback() 93 case nghttp2::http2::HD__SCHEME: in on_header_callback() 96 case nghttp2::http2::HD__AUTHORITY: in on_header_callback() 99 case nghttp2::http2::HD__PATH: in on_header_callback() 102 case nghttp2::http2::HD_HOST: in on_header_callback() 346 nva.push_back(nghttp2::http2::make_nv_ls(":status", status)); in start_response() 347 nva.push_back(nghttp2::http2::make_nv_ls("date", date)); in start_response() 349 nva.push_back(nghttp2::http2::make_nv(hd.first, hd.second.value, in start_response() 355 if (::nghttp2::http2::expect_response_body(req.method(), res.status_code())) { in start_response() [all …]
|
D | shrpx_https_upstream.cc | 315 req.path = http2::rewrite_clean_path(balloc, path); in rewrite_request_host_path_from_uri() 347 ss << http2::to_method_string(method) << " " in htp_hdrs_completecb() 365 if (method != HTTP_CONNECT && !req.fs.header(http2::HD_TRANSFER_ENCODING)) { in htp_hdrs_completecb() 373 auto host = req.fs.header(http2::HD_HOST); in htp_hdrs_completecb() 417 req.path = http2::rewrite_clean_path(balloc, req.path); in htp_hdrs_completecb() 931 http2::HD_CONNECTION); in send_reply() 937 auto c = resp.fs.header(http2::HD_CONNECTION); in send_reply() 951 output->append(http2::stringify_status(balloc, resp.http_status)); in send_reply() 953 output->append(http2::get_reason_phrase(resp.http_status)); in send_reply() 960 http2::capitalize(output, kv.name); in send_reply() [all …]
|
D | asio_client_session_impl.cc | 204 auto token = http2::lookup_token(name, namelen); in on_header_callback() 207 if (token == http2::HD__STATUS) { in on_header_callback() 217 if (token == http2::HD_CONTENT_LENGTH) { in on_header_callback() 237 switch (http2::lookup_token(name, namelen)) { in on_header_callback() 238 case http2::HD__METHOD: in on_header_callback() 241 case http2::HD__SCHEME: in on_header_callback() 244 case http2::HD__PATH: in on_header_callback() 247 case http2::HD__AUTHORITY: in on_header_callback() 250 case http2::HD_HOST: in on_header_callback() 410 nva.push_back(nghttp2::http2::make_nv(hd.first, hd.second.value, in write_trailer() [all …]
|
/third_party/node/test/parallel/ |
D | test-http2-getpackedsettings.js | 7 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 …]
|
D | test-http2-client-setLocalWindowSize.js | 8 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();
|
D | test-http2-session-unref.js | 9 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}`, {
|
D | test-http2-sensitive-headers.js | 6 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],
|
D | test-http2-server-startup.js | 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(); 54 const server = http2.createServer({ allowHalfOpen: true }); 74 const server = http2.createSecureServer(options); 93 const server = http2.createSecureServer({
|
D | test-http2-zero-length-header.js | 7 const http2 = require('http2'); constant 9 const server = http2.createServer(); 18 [http2.sensitiveHeaders]: [] 24 const client = http2.connect(`http://localhost:${server.address().port}/`);
|
D | test-http2-too-many-headers.js | 6 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}`);
|
D | test-http2-propagate-session-destroy-code.js | 8 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]: '/' });
|
D | test-http2-too-large-headers.js | 6 const http2 = require('http2'); constant 10 } = http2.constants; 13 const server = http2.createServer({ settings: { [prototype]: 100 } }); 17 const client = http2.connect(`http://localhost:${server.address().port}`);
|
D | test-http2-compat-socket-destroy-delayed.js | 9 const http2 = require('http2'); constant 15 } = http2.constants; 21 const app = http2.createServer(mustCall((req, res) => { 27 const session = http2.connect(`http://localhost:${app.address().port}`);
|
/third_party/nghttp2/doc/bash_completion/ |
D | nghttpx | 11 …http2-dump-response-header --tls-ticket-key-file --verify-client-cacert --max-response-header-fiel…
|
/third_party/nghttp2/integration-tests/ |
D | nghttpx_http2_test.go | 26 res, err := st.http2(requestParam{ 50 res, err := st.http2(requestParam{ 75 res, err := st.http2(requestParam{ 100 res, err := st.http2(requestParam{ 124 res, err := st.http2(requestParam{ 150 res, err := st.http2(requestParam{ 173 res, err := st.http2(requestParam{ 197 res, err := st.http2(requestParam{ 227 res, err := st.http2(requestParam{ 255 res, err := st.http2(requestParam{ [all …]
|
/third_party/nghttp2/src/includes/nghttp2/ |
D | asio_http2_server.h | 133 class http2 { 135 http2(); 136 ~http2(); 138 http2(http2 &&other) noexcept; 139 http2 &operator=(http2 &&other) noexcept;
|
/third_party/node/tools/doc/ |
D | type-parser.mjs | 104 '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 …]
|
/third_party/node/test/internet/ |
D | test-http2-issue-32922.js | 7 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) => {
|
/third_party/node/doc/api/ |
D | http2.md | 16 <!-- 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 …]
|