Home
last modified time | relevance | path

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

123

/external/curl/.github/workflows/
Dhttp3-linux.yml3 # SPDX-License-Identifier: curl
10 - master
11 - '*/ci'
12 paths-ignore:
13 - '**/*.md'
14 - '.circleci/**'
15 - 'appveyor.*'
16 - 'packages/**'
17 - 'plan9/**'
18 - 'projects/**'
[all …]
Dmacos.yml3 # SPDX-License-Identifier: curl
10 - master
11 - '*/ci'
12 paths-ignore:
13 - '**/*.md'
14 - '.circleci/**'
15 - 'appveyor.*'
16 - 'packages/**'
17 - 'plan9/**'
18 - 'projects/**'
[all …]
Dnon-native.yml3 # SPDX-License-Identifier: curl
5 name: non-native
10 - master
11 - '*/ci'
12 paths-ignore:
13 - '**/*.md'
14 - '.circleci/**'
15 - 'appveyor.*'
16 - 'packages/**'
17 - 'plan9/**'
[all …]
Dwindows.yml3 # SPDX-License-Identifier: curl
10 - master
11 - '*/ci'
12 paths-ignore:
13 - '**/*.md'
14 - '.circleci/**'
15 - 'appveyor.*'
16 - 'packages/**'
17 - 'plan9/**'
18 - 'projects/**'
[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
73 xargs.extend(['--proxy-user', 'proxy:proxy'])
78 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
79 reason='curl lacks HTTPS-proxy support')
89 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
90 reason='curl lacks HTTPS-proxy support')
96 xargs.extend(['--proxy-user', 'proxy:proxy'])
114 xargs.extend(['--proxy-user', 'proxy:proxy'])
120 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
[all …]
/external/curl/docs/
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.2.0.4
30 - libssh2 1.0
[all …]
DINSTALL-CMAKE.md1 <!--
4 SPDX-License-Identifier: curl
5 -->
7 # Building with CMake
10 from source code using the CMake build tool. To build with CMake, you of
29 - Build in the source tree.
31 $ cmake -B .
33 - Build in a separate directory (parallel to the curl source tree in this
36 $ cmake -B ../curl-build
40 CMake before version 3.13 does not support the `-B` option. In that case,
[all …]
/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!
81 * nghttp2 allows us to tweak the local window size. */
93 /* We need to accommodate the max number of streams with their window sizes on
96 * is blocked from sending us any data. See #10988 for an issue with this. */
106 iv[0].value = Curl_multi_max_concurrent_streams(data->multi); in populate_settings()
112 iv[2].value = data->multi->push_cb != NULL; in populate_settings()
139 struct Curl_hash streams; /* hash of `data->mid` to `h2_stream_ctx` */
[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.
102 * Return TRUE iff one or more headers with the given name exist.
110 * Names are case-insensitive.
116 * Return how often the given 0-terminated name appears in `dynhds`.
117 * Names are case-insensitive.
122 * Remove all entries with the given name.
131 * Set the give header name and value, replacing any entries with
152 * Add a header, c-string name + value, to `dynhds` at the end.
[all …]
Dcf-h2-proxy.c21 * SPDX-License-Identifier: curl
29 #include <nghttp2/nghttp2.h>
42 #include "cf-h2-proxy.h"
90 ts->state = H2_TUNNEL_INIT; in tunnel_stream_init()
91 ts->stream_id = -1; in tunnel_stream_init()
92 Curl_bufq_init2(&ts->recvbuf, PROXY_H2_CHUNK_SIZE, H2_TUNNEL_RECV_CHUNKS, in tunnel_stream_init()
94 Curl_bufq_init(&ts->sendbuf, PROXY_H2_CHUNK_SIZE, H2_TUNNEL_SEND_CHUNKS); in tunnel_stream_init()
100 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 …]
Dversion.c21 * SPDX-License-Identifier: curl
28 #include <nghttp2/nghttp2.h>
63 /* Ignore -Wvla warnings in brotli headers */
65 #pragma GCC diagnostic ignored "-Wvla"
101 unsigned int minor = (version - (major * 100 * 100)) / 100; in zstd_version()
102 unsigned int patch = version - (major * 100 * 100) - (minor * 100); in zstd_version()
117 (((unsigned int)api.ldapai_vendor_version - major * 10000) in oldap_version()
118 - patch) / 100; in oldap_version()
163 * It is implemented to work multi-threaded by making sure repeated invokes
246 "c-ares/%s", ares_version(NULL)); in curl_version()
[all …]
/external/cronet/tot/net/third_party/quiche/src/quiche/http2/adapter/
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.
76 // of 0 indicates connection-level METADATA. The adapter will query the
85 // Returns the connection-level flow control window advertised by the peer.
88 // Returns the stream-level flow control window advertised by the peer.
[all …]
Dnghttp2_adapter.cc13 #include "quiche/http2/adapter/nghttp2.h"
28 // A nghttp2-style `nghttp2_data_source_read_callback`.
33 NgHttp2Adapter* adapter = reinterpret_cast<NgHttp2Adapter*>(source->ptr); in DataFrameReadCallback()
34 return adapter->DelegateReadCallback(stream_id, length, data_flags); in DataFrameReadCallback()
37 // A nghttp2-style `nghttp2_send_data_callback`.
41 NgHttp2Adapter* adapter = reinterpret_cast<NgHttp2Adapter*>(source->ptr); in DataFrameSendCallback()
42 return adapter->DelegateSendCallback(frame->hd.stream_id, framehd, length); in DataFrameSendCallback()
57 return source_->NumFrames(max_frame_size); in NumFrames()
61 const auto result = source_->Pack(dest, dest_len); in Pack()
63 adapter_->RemovePendingMetadata(stream_id_); in Pack()
[all …]
Ddata_source.h17 enum : int64_t { kBlocked = 0, kError = -1 };
26 // serialize the metadata for this source. Only required by the nghttp2
30 // This method is called with a destination buffer and length. It should
37 // fails in a non-recoverable way.
Dcallback_visitor.cc7 #include "quiche/http2/adapter/nghttp2.h"
96 if (!callbacks_->send_callback) { in OnReadyToSend()
99 int64_t result = callbacks_->send_callback( in OnReadyToSend()
101 QUICHE_VLOG(1) << "CallbackVisitor::OnReadyToSend called with " in OnReadyToSend()
118 << "Not implemented; should not be used with nghttp2 callbacks."; in OnReadyToSendDataForStream()
126 << "Not implemented; should not be used with nghttp2 callbacks."; in SendDataFrame()
158 if (callbacks_->on_begin_frame_callback) { in OnFrameHeader()
160 callbacks_->on_begin_frame_callback(nullptr, &hd, user_data_); in OnFrameHeader()
167 // invoke the on_frame_recv_callback() with the accumulated frame data. in OnFrameHeader()
173 if (callbacks_->on_begin_frame_callback) { in OnFrameHeader()
[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 inline constexpr 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
Dcallback_visitor_test.cc37 // Tests connection-level events.
113 EXPECT_CALL(callbacks, OnHeader(_, "server", "my-fake-server", _)); in TEST()
114 visitor.OnHeaderForStream(1, "server", "my-fake-server"); in TEST()
120 EXPECT_CALL(callbacks, OnHeader(_, "trailer", "x-server-status", _)); in TEST()
121 visitor.OnHeaderForStream(1, "trailer", "x-server-status"); in TEST()
135 // Trailers for stream 1, with a different nghttp2 "category". in TEST()
142 EXPECT_CALL(callbacks, OnHeader(_, "x-server-status", "OK", _)); in TEST()
143 visitor.OnHeaderForStream(1, "x-server-status", "OK"); in TEST()
215 EXPECT_CALL(callbacks, OnHeader(_, "server", "my-fake-server", _)); in TEST()
216 visitor.OnHeaderForStream(1, "server", "my-fake-server"); in TEST()
[all …]
/external/cronet/stable/net/third_party/quiche/src/quiche/http2/adapter/
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.
76 // of 0 indicates connection-level METADATA. The adapter will query the
85 // Returns the connection-level flow control window advertised by the peer.
88 // Returns the stream-level flow control window advertised by the peer.
[all …]
Dnghttp2_adapter.cc13 #include "quiche/http2/adapter/nghttp2.h"
28 // A nghttp2-style `nghttp2_data_source_read_callback`.
33 NgHttp2Adapter* adapter = reinterpret_cast<NgHttp2Adapter*>(source->ptr); in DataFrameReadCallback()
34 return adapter->DelegateReadCallback(stream_id, length, data_flags); in DataFrameReadCallback()
37 // A nghttp2-style `nghttp2_send_data_callback`.
41 NgHttp2Adapter* adapter = reinterpret_cast<NgHttp2Adapter*>(source->ptr); in DataFrameSendCallback()
42 return adapter->DelegateSendCallback(frame->hd.stream_id, framehd, length); in DataFrameSendCallback()
57 return source_->NumFrames(max_frame_size); in NumFrames()
61 const auto result = source_->Pack(dest, dest_len); in Pack()
63 adapter_->RemovePendingMetadata(stream_id_); in Pack()
[all …]
Ddata_source.h17 enum : int64_t { kBlocked = 0, kError = -1 };
26 // serialize the metadata for this source. Only required by the nghttp2
30 // This method is called with a destination buffer and length. It should
37 // fails in a non-recoverable way.
Dcallback_visitor.cc7 #include "quiche/http2/adapter/nghttp2.h"
96 if (!callbacks_->send_callback) { in OnReadyToSend()
99 int64_t result = callbacks_->send_callback( in OnReadyToSend()
101 QUICHE_VLOG(1) << "CallbackVisitor::OnReadyToSend called with " in OnReadyToSend()
118 << "Not implemented; should not be used with nghttp2 callbacks."; in OnReadyToSendDataForStream()
126 << "Not implemented; should not be used with nghttp2 callbacks."; in SendDataFrame()
158 if (callbacks_->on_begin_frame_callback) { in OnFrameHeader()
160 callbacks_->on_begin_frame_callback(nullptr, &hd, user_data_); in OnFrameHeader()
167 // invoke the on_frame_recv_callback() with the accumulated frame data. in OnFrameHeader()
173 if (callbacks_->on_begin_frame_callback) { in OnFrameHeader()
[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 inline constexpr 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/
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/])
69 if test -z "$SED"; then
73 if test -z "$SED" || test "$SED" = "not_found"; then
81 if test -z "$GREP"; then
85 if test -z "$GREP" || test "$GREP" = "not_found"; then
91 dnl 'grep -E' is mandatory for configure process and libtool.
93 if test -z "$EGREP"; then
95 AC_MSG_CHECKING([that grep -E works])
[all …]

123