Home
last modified time | relevance | path

Searched +full:- +full:- +full:with +full:- +full:nghttp2 (Results 1 – 25 of 53) sorted by relevance

123

/external/curl/.github/workflows/
Dmacos.yml3 # SPDX-License-Identifier: curl
10 - master
11 - '*/ci'
12 paths-ignore:
13 - '**/*.md'
14 - '.azure-pipelines.yml'
15 - '.circleci/**'
16 - '.cirrus.yml'
17 - 'appveyor.*'
18 - 'packages/**'
[all …]
Dquiche-linux.yml3 # SPDX-License-Identifier: curl
10 - master
11 - '*/ci'
12 paths-ignore:
13 - '**/*.md'
14 - '**/CMakeLists.txt'
15 - '.azure-pipelines.yml'
16 - '.circleci/**'
17 - '.cirrus.yml'
18 - 'appveyor.*'
[all …]
Dosslq-linux.yml3 # SPDX-License-Identifier: curl
5 name: osslq-linux
10 - master
11 - '*/ci'
12 paths-ignore:
13 - '**/*.md'
14 - '**/CMakeLists.txt'
15 - '.azure-pipelines.yml'
16 - '.circleci/**'
17 - '.cirrus.yml'
[all …]
Dngtcp2-linux.yml3 # SPDX-License-Identifier: curl
5 name: ngtcp2-linux
10 - master
11 - '*/ci'
12 paths-ignore:
13 - '**/*.md'
14 - '**/CMakeLists.txt'
15 - '.azure-pipelines.yml'
16 - '.circleci/**'
17 - '.cirrus.yml'
[all …]
Dnon-native.yml3 # SPDX-License-Identifier: curl
5 name: non-native
10 - master
11 - '*/ci'
12 paths-ignore:
13 - '**/*.md'
14 - '.azure-pipelines.yml'
15 - '.circleci/**'
16 - '.cirrus.yml'
17 - 'appveyor.*'
[all …]
/external/curl/tests/http/
Dtest_10_proxy.py2 # -*- coding: utf-8 -*-
23 # SPDX-License-Identifier: curl
48 env.make_data_file(indir=env.gen_dir, fname="data-100k", fsize=100*1024)
49 env.make_data_file(indir=env.gen_dir, fname="data-10m", fsize=10*1024*1024)
70 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
71 reason='curl lacks HTTPS-proxy support')
74 if proto == 'h2' and not env.curl_uses_lib('nghttp2'):
75 pytest.skip('only supported with nghttp2')
84 # upload via https: with proto (no tunnel)
89 ['data-100k', 5],
[all …]
Dtest_13_proxy_auth.py2 # -*- coding: utf-8 -*-
23 # SPDX-License-Identifier: curl
76 xargs.extend(['--proxy-user', 'proxy:proxy'])
81 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
82 reason='curl lacks HTTPS-proxy support')
92 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
93 reason='curl lacks HTTPS-proxy support')
99 xargs.extend(['--proxy-user', 'proxy:proxy'])
117 xargs.extend(['--proxy-user', 'proxy:proxy'])
123 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
[all …]
/external/cronet/net/third_party/quiche/src/quiche/http2/adapter/
Dnghttp2_util.h1 // Various utility/conversion functions for compatibility with the nghttp2 API.
14 #include "quiche/http2/adapter/nghttp2.h"
44 // Returns the nghttp2 header structure from the given |headers|, which
48 // Returns the nghttp2 header structure from the given response |headers|, with
59 // Converts between the integer error code used by nghttp2 and the corresponding
65 // |provider| uses the zero-copy nghttp2_data_source_read_callback API. Unsafe
Dnghttp2_data_provider_test.cc13 // correctly with nghttp2-style callbacks when the amount of data read is less
26 provider->read_callback(nullptr, kStreamId, nullptr, kReadLength, in TEST()
27 &data_flags, &provider->source, nullptr); in TEST()
34 nullptr, nullptr, framehd, result, &provider->source, nullptr); in TEST()
42 // correctly with nghttp2-style callbacks when the amount of data read is more
56 provider->read_callback(nullptr, kStreamId, nullptr, kReadLength, in TEST()
57 &data_flags, &provider->source, nullptr); in TEST()
64 nullptr, nullptr, framehd, result, &provider->source, nullptr); in TEST()
72 // correctly with nghttp2-style callbacks when the source is blocked.
82 provider->read_callback(nullptr, kStreamId, nullptr, kReadLength, in TEST()
[all …]
Dhttp2_adapter.h17 // Http2Adapter is an HTTP/2-processing class that exposes an interface similar
18 // to the nghttp2 library for processing the HTTP/2 wire format. As nghttp2
20 // invokes corresponding callbacks on its passed-in Http2VisitorInterface.
21 // Http2Adapter is a base class shared between client-side and server-side
51 // Starts a graceful shutdown. A no-op for clients.
62 // a connection-level WINDOW_UPDATE).
71 // of 0 indicates connection-level METADATA.
79 // Returns the connection-level flow control window advertised by the peer.
82 // Returns the stream-level flow control window advertised by the peer.
98 // per-entry overhead from the specification.
[all …]
Ddata_source.h19 enum : int64_t { kBlocked = 0, kError = -1 };
26 // This method is called with a frame header and a payload length to send. The
42 // serialize the metadata for this source. Only required by the nghttp2
46 // This method is called with a destination buffer and length. It should
53 // fails in a non-recoverable way.
Dnghttp2_adapter_test.cc8 #include "quiche/http2/adapter/nghttp2.h"
45 ssize_t result = visitor->OnReadyToSend(ToStringView(framehd, 9)); in TestSendCallback()
49 auto* test_source = static_cast<TestDataSource*>(source->ptr); in TestSendCallback()
50 absl::string_view payload = test_source->ReadNext(length); in TestSendCallback()
52 visitor->OnReadyToSend(payload); in TestSendCallback()
60 EXPECT_TRUE(adapter->want_read()); in TEST()
61 EXPECT_FALSE(adapter->want_write()); in TEST()
62 EXPECT_FALSE(adapter->IsServerSession()); in TEST()
68 int result = adapter->Send(); in TEST()
74 EXPECT_EQ(0, adapter->GetHighestReceivedStreamId()); in TEST()
[all …]
Dcallback_visitor_test.cc35 // Tests connection-level events.
111 EXPECT_CALL(callbacks, OnHeader(_, "server", "my-fake-server", _)); in TEST()
112 visitor.OnHeaderForStream(1, "server", "my-fake-server"); in TEST()
118 EXPECT_CALL(callbacks, OnHeader(_, "trailer", "x-server-status", _)); in TEST()
119 visitor.OnHeaderForStream(1, "trailer", "x-server-status"); in TEST()
133 // Trailers for stream 1, with a different nghttp2 "category". in TEST()
140 EXPECT_CALL(callbacks, OnHeader(_, "x-server-status", "OK", _)); in TEST()
141 visitor.OnHeaderForStream(1, "x-server-status", "OK"); in TEST()
213 EXPECT_CALL(callbacks, OnHeader(_, "server", "my-fake-server", _)); in TEST()
214 visitor.OnHeaderForStream(1, "server", "my-fake-server"); in TEST()
[all …]
Dhttp2_protocol.h16 // Represents an HTTP/2 stream ID, consistent with nghttp2.
32 // Represents an HTTP/2 header field. A header field is a key-value pair with
36 // Represents an HTTP/2 SETTINGS key-value parameter.
47 // The stream ID that represents the connection (e.g., for connection-level flow
61 const int kInitialFlowControlWindowSize = 64 * 1024 - 1;
63 // The pseudo-header fields as specified in RFC 7540 Section 8.1.2.3 (request)
118 // conversion to the underlying Http2SettingsId type and use with non-standard
132 // Returns a human-readable string representation of the given SETTINGS |id| for
137 // Returns a human-readable string representation of the given |error_code| for
/external/curl/docs/
DHTTP2.md1 <!--
4 SPDX-License-Identifier: curl
5 -->
7 HTTP/2 with curl
10 [HTTP/2 Spec](https://www.rfc-editor.org/rfc/rfc7540.txt)
14 -------------------
15 - nghttp2
16 - OpenSSL, libressl, BoringSSL, GnuTLS, mbedTLS, wolfSSL or Schannel
17 with a new enough version.
19 [nghttp2](https://nghttp2.org/)
[all …]
DHTTP3.md1 <!--
4 SPDX-License-Identifier: curl
5 -->
11 [HTTP/3 Explained](https://http3-explained.haxx.se/en/) - the online free
14 [quicwg.org](https://quicwg.org/) - home of the official protocol drafts
22 [quiche](https://github.com/cloudflare/quiche) - **EXPERIMENTAL**
24 [OpenSSL 3.2+ QUIC](https://github.com/openssl/openssl) - **EXPERIMENTAL**
26 [msh3](https://github.com/nibanks/msh3) (with [msquic](https://github.com/microsoft/msquic)) - **EX…
35 master branch using pull-requests, just like ordinary changes.
39 - the used QUIC library needs to consider itself non-beta
[all …]
DINTERNALS.md1 <!--
4 SPDX-License-Identifier: curl
5 -->
15 We write curl and libcurl to compile with C89 compilers on 32-bit and up
19 We write libcurl to build and work with lots of third party tools, and we
20 want it to remain functional and buildable with these and later versions
27 - OpenSSL 0.9.7
28 - GnuTLS 3.1.10
29 - zlib 1.1.4
30 - libssh2 1.0
[all …]
/external/oss-fuzz/projects/nghttp2/
DDockerfile4 # you may not use this file except in compliance with the License.
7 # http://www.apache.org/licenses/LICENSE-2.0
17 FROM gcr.io/oss-fuzz-base/base-builder
18 RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config
19 RUN git clone --depth 1 https://github.com/nghttp2/nghttp2.git
20 WORKDIR nghttp2
/external/curl/lib/
Dhttp2.c21 * SPDX-License-Identifier: curl
29 #include <nghttp2/nghttp2.h>
42 #include "urlapi-int.h"
57 #error too old nghttp2 version, upgrade!
86 /* We need to accommodate the max number of streams with their window
90 * See #10988 for an issue with this. */
100 iv[0].value = Curl_multi_max_concurrent_streams(data->multi); in populate_settings()
106 iv[2].value = data->multi->push_cb != NULL; in populate_settings()
133 struct Curl_hash streams; /* hash of `data->id` to `h2_stream_ctx` */
147 ((struct cf_h2_ctx *)(cf)->ctx)->call_data
[all …]
Dcf-h2-proxy.c21 * SPDX-License-Identifier: curl
29 #include <nghttp2/nghttp2.h>
42 #include "cf-h2-proxy.h"
91 ts->state = H2_TUNNEL_INIT; in tunnel_stream_init()
92 ts->stream_id = -1; in tunnel_stream_init()
93 Curl_bufq_init2(&ts->recvbuf, PROXY_H2_CHUNK_SIZE, H2_TUNNEL_RECV_CHUNKS, in tunnel_stream_init()
95 Curl_bufq_init(&ts->sendbuf, PROXY_H2_CHUNK_SIZE, H2_TUNNEL_SEND_CHUNKS); in tunnel_stream_init()
101 ts->authority = /* host:port with IPv6 support */ in tunnel_stream_init()
103 if(!ts->authority) in tunnel_stream_init()
111 Curl_http_resp_free(ts->resp); in tunnel_stream_clear()
[all …]
Ddynhds.h23 * SPDX-License-Identifier: curl
35 * `name` and `value` are non-NULL and always NUL terminated.
87 * Return the n-th header entry or NULL if it does not exist.
99 * Return TRUE iff one or more headers with the given name exist.
107 * Names are case-insensitive.
113 * Return how often the given 0-terminated name appears in `dynhds`.
114 * Names are case-insensitive.
127 * Add a header, c-string name + value, to `dynhds` at the end.
133 * Remove all entries with the given name.
142 * Set the give header name and value, replacing any entries with
[all …]
DMakefile.mk21 # SPDX-License-Identifier: curl
25 # Makefile to build curl parts with GCC-like toolchains and optional features.
27 # Usage: make -f Makefile.mk CFG=-feat1[-feat2][-feat3][...]
28 # Example: make -f Makefile.mk CFG=-zlib-ssl-libssh2-ipv6
54 TRIPLET ?= $(shell $(CC) -dumpmachine)
59 # Cross-tools: https://github.com/andrewwutw/build-djgpp
63 # Cross-tools: https://github.com/bebbo/amiga-gcc
67 CPPFLAGS += -I. -I$(PROOT)/include
77 ifneq ($(findstring -debug,$(CFG)),)
78 CFLAGS += -g
[all …]
Dcurl_config.h.in3 /* Ignore c-ares deprecation warnings */
21 /* disable alt-svc */
63 /* disable headers-api */
66 /* disable alt-svc */
87 /* to disable --libcurl C code generation option */
114 /* disable progress-meter */
150 /* built with multiple SSL backends */
305 /* Define to 1 if you have a working glibc-style strerror_r function. */
314 /* if you have GSS-API libraries */
393 /* Define to 1 if you have the `brotlidec' library (-lbrotlidec). */
[all …]
/external/curl/
D.cirrus.yml21 # SPDX-License-Identifier: curl
24 # https://cirrus-ci.com/github/curl/curl
27 # https://cirrus-ci.org/guide/writing-tasks/
32 '.azure-pipelines.yml',
46 - name: FreeBSD 14.0
48 image_family: freebsd-14-0
53 MAKEFLAGS: -j 3
56 - pkg update -f
57- pkg install -y autoconf automake libtool pkgconf brotli openldap26-client heimdal libpsl libssh2…
58 - pkg delete -y curl
[all …]
Dconfigure.ac21 # SPDX-License-Identifier: curl
24 dnl Process this file with autoconf to produce a configure script.
29 AC_INIT([curl], [-], [a suitable curl mailing list: https://curl.se/mail/])
67 if test -z "$SED"; then
71 if test -z "$SED" || test "$SED" = "not_found"; then
79 if test -z "$GREP"; then
83 if test -z "$GREP" || test "$GREP" = "not_found"; then
89 dnl 'grep -E' is mandatory for configure process and libtool.
91 if test -z "$EGREP"; then
93 AC_MSG_CHECKING([that grep -E works])
[all …]

123