Home
last modified time | relevance | path

Searched refs:http2 (Results 1 - 25 of 76) sorted by relevance

1234

/third_party/nghttp2/src/
H A 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 in test_http2_add_header()
[all...]
H A 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 in copy_headers_to_nva_internal()
[all...]
H A 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()
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 in push_request_headers()
[all...]
H A 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 in on_request_headers()
[all...]
H A 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 in test_downstream_assemble_request_cookie()
[all...]
H A Dshrpx_https_upstream.cc44 #include "http2.h"
328 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 in htp_hdrs_completecb()
[all...]
H A Dshrpx_downstream.cc44 #include "http2.h"
151 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 in alloc_add_header_name()
[all...]
H A DHttpServer.cc66 #include "http2.h"
937 auto nva = make_array(http2::make_nv_ls_nocopy(":status", status), in submit_file_response()
938 http2::make_nv_ls_nocopy("server", NGHTTPD_SERVER), in submit_file_response()
939 http2::make_nv_ll("cache-control", "max-age=3600"), in submit_file_response()
940 http2::make_nv_ls("date", sessions_->get_cached_date()), in submit_file_response()
941 http2::make_nv_ll("", ""), http2::make_nv_ll("", ""), in submit_file_response()
942 http2::make_nv_ll("", ""), http2::make_nv_ll("", "")); in submit_file_response()
945 nva[nvlen++] = http2 in submit_file_response()
[all...]
H A Dshrpx_http_downstream_connection.cc42 #include "http2.h"
504 auto meth = http2::to_method_string( in push_request_headers()
535 (fwdconf.strip_incoming ? http2::HDOP_STRIP_FORWARDED : 0) | in push_request_headers()
536 (xffconf.strip_incoming ? http2::HDOP_STRIP_X_FORWARDED_FOR : 0) | in push_request_headers()
537 (xfpconf.strip_incoming ? http2::HDOP_STRIP_X_FORWARDED_PROTO : 0) | in push_request_headers()
538 (earlydataconf.strip_incoming ? http2::HDOP_STRIP_EARLY_DATA : 0) | in push_request_headers()
540 ? http2::HDOP_STRIP_SEC_WEBSOCKET_KEY in push_request_headers()
543 http2::build_http1_headers_from_headers(buf, req.fs.headers(), build_flags); in push_request_headers()
579 auto connection = req.fs.header(http2::HD_CONNECTION); in push_request_headers()
586 auto upgrade = req.fs.header(http2 in push_request_headers()
[all...]
/third_party/nghttp2/integration-tests/
H A Dnghttpx_http2_test.go17 "golang.org/x/net/http2"
18 "golang.org/x/net/http2/hpack"
26 res, err := st.http2(requestParam{
30 t.Fatalf("Error st.http2() = %v", err)
53 res, err := st.http2(requestParam{
60 t.Fatalf("Error st.http2() = %v", err)
85 res, err := st.http2(requestParam{
92 t.Fatalf("Error st.http2() = %v", err)
113 res, err := st.http2(requestParam{
120 t.Fatalf("Error st.http2()
[all...]
H A Dserver_tester.go26 "golang.org/x/net/http2"
27 "golang.org/x/net/http2/hpack"
55 fr *http2.Framer // HTTP/2 framer
61 frCh chan http2.Frame // used for incoming HTTP/2 frame
108 case "--http2-bridge":
209 frCh: make(chan http2.Frame),
263 st.fr = http2.NewFramer(st.conn, st.conn)
303 func (st *serverTester) readFrame() (http2.Frame, error) {
466 func (st *serverTester) http2(rp requestParam) (*serverResponse, error) {
527 err := st.fr.WriteHeaders(http2
[all...]
/third_party/node/test/parallel/
H A Dtest-http2-client-setLocalWindowSize.js8 const http2 = require('http2');
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
[all...]
H A Dtest-http2-server-startup.js14 const http2 = require('http2');
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
[all...]
H A Dtest-http2-server-timeout.js6 const http2 = require('http2');
9 const server = http2.createServer();
21 const client = http2.connect(url);
23 const client2 = http2.connect(url);
H A Dtest-http2-connect-method-extended-cant-turn-off.js7 const http2 = require('http2');
10 const server = http2.createServer({ settings });
19 const client = http2.connect(`http://localhost:${server.address().port}`);
H A Dtest-http2-client-request-options-errors.js7 const http2 = require('http2');
31 const server = http2.createServer(common.mustNotCall());
35 const client = http2.connect(`http://localhost:${port}`);
H A Dtest-http2-client-setNextStreamID-errors.js8 const http2 = require('http2');
10 const server = http2.createServer();
27 const client = http2.connect(`http://localhost:${server.address().port}`);
H A Dtest-http2-connect-tls-with-delay.js7 const http2 = require('http2');
16 const server = http2.createSecureServer(serverOptions, (req, res) => {
31 const client = http2.connect(
H A Dtest-http2-respond-errors.js8 const http2 = require('http2');
10 const { Http2Stream } = internalBinding('http2');
12 const server = http2.createServer();
43 const client = http2.connect(`http://localhost:${server.address().port}`);
H A Dtest-http2-socket-proxy-handler-for-has.js9 const http2 = require('http2');
15 const server = http2.createSecureServer(serverOptions, common.mustCall(
25 const client = http2.connect('https://localhost:' + port, {
H A Dtest-http2-status-code-invalid.js7 const http2 = require('http2');
9 const server = http2.createServer();
31 const client = http2.connect(`http://localhost:${server.address().port}`);
H A Dtest-http2-update-settings.js11 const http2 = require('http2');
14 server: http2.createSecureServer(),
26 server: http2.createServer(),
H A Dtest-http2-respond-file-fd-range.js9 const http2 = require('http2');
17 } = http2.constants;
32 const server = http2.createServer();
53 const client = http2.connect(`http://localhost:${server.address().port}`);
/third_party/node/test/internet/
H A Dtest-http2-issue-32922.js7 const http2 = require('http2');
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/benchmark/http2/
H A Dheaders.js11 const http2 = require('http2');
12 const server = http2.createServer({
35 const client = http2.connect(`http://localhost:${server.address().port}/`, {

Completed in 17 milliseconds

1234