async-http 0.99.0 → 0.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/http/endpoint.rb +8 -0
- data/lib/async/http/version.rb +1 -1
- data/readme.md +4 -4
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ee704ca93c1b809cfcd2ea2db7961066a10d433143f1144658a52c7674179110
|
|
4
|
+
data.tar.gz: 268a538e9a234f51495990e39d8f5c9f7bb8d1a73db57da285e6cf180f3638e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9393381596b9b8f1c14cea1383577cb4037e60f74d4e0aa9f84862f38f906988645fc9153dc68cb933fe3932ea3b3e5abc92cae9429200d4ee1a17a90706b476
|
|
7
|
+
data.tar.gz: 9bae0d3084ce01b65c9eeb208b97a525b176063c20473f554a1b18016b486e6a0813b974864c7bbdadaca22e1605932e1239e10c402bf38a9cfd16fb59744c2e
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/async/http/endpoint.rb
CHANGED
|
@@ -70,6 +70,7 @@ module Async
|
|
|
70
70
|
# @option hostname [String] the hostname to connect to (or bind to), overrides the URL hostname (used for SNI).
|
|
71
71
|
# @option port [Integer] the port to bind to, overrides the URL port.
|
|
72
72
|
# @option ssl_context [OpenSSL::SSL::SSLContext] the context to use for TLS.
|
|
73
|
+
# @option tls_configuration [IO::Endpoint::TLS::Configuration] the transport-neutral TLS configuration.
|
|
73
74
|
# @option alpn_protocols [Array(String)] the alpn protocols to negotiate.
|
|
74
75
|
def initialize(url, endpoint = nil, **options)
|
|
75
76
|
super(**options)
|
|
@@ -206,6 +207,11 @@ module Async
|
|
|
206
207
|
end
|
|
207
208
|
end
|
|
208
209
|
|
|
210
|
+
# @returns [IO::Endpoint::TLS::Configuration | Nil] The transport-neutral TLS configuration.
|
|
211
|
+
def tls_configuration
|
|
212
|
+
@options[:tls_configuration]
|
|
213
|
+
end
|
|
214
|
+
|
|
209
215
|
# Build a suitable endpoint, optionally wrapping in TLS for secure connections.
|
|
210
216
|
# @parameter endpoint [IO::Endpoint::Generic | Nil] An optional underlying endpoint to wrap.
|
|
211
217
|
# @returns [IO::Endpoint::Generic] The constructed endpoint.
|
|
@@ -216,6 +222,7 @@ module Async
|
|
|
216
222
|
# Wrap it in SSL:
|
|
217
223
|
return ::IO::Endpoint::SSLEndpoint.new(endpoint,
|
|
218
224
|
ssl_context: self.ssl_context,
|
|
225
|
+
tls_configuration: self.tls_configuration,
|
|
219
226
|
hostname: @url.hostname,
|
|
220
227
|
timeout: self.timeout,
|
|
221
228
|
)
|
|
@@ -280,6 +287,7 @@ module Async
|
|
|
280
287
|
options.delete(:port)
|
|
281
288
|
options.delete(:hostname)
|
|
282
289
|
options.delete(:ssl_context)
|
|
290
|
+
options.delete(:tls_configuration)
|
|
283
291
|
options.delete(:alpn_protocols)
|
|
284
292
|
options.delete(:protocol)
|
|
285
293
|
|
data/lib/async/http/version.rb
CHANGED
data/readme.md
CHANGED
|
@@ -16,6 +16,10 @@ Please see the [project documentation](https://socketry.github.io/async-http/) f
|
|
|
16
16
|
|
|
17
17
|
Please see the [project releases](https://socketry.github.io/async-http/releases/index) for all releases.
|
|
18
18
|
|
|
19
|
+
### v0.100.0
|
|
20
|
+
|
|
21
|
+
- Added transport-neutral TLS configuration support to `Async::HTTP::Endpoint`.
|
|
22
|
+
|
|
19
23
|
### v0.99.0
|
|
20
24
|
|
|
21
25
|
- Retry safe requests when a remote HTTP/2 endpoint resets the stream with `INTERNAL_ERROR` before returning a response.
|
|
@@ -55,10 +59,6 @@ Please see the [project releases](https://socketry.github.io/async-http/releases
|
|
|
55
59
|
|
|
56
60
|
- Fix `defer_stop` usage in `HTTP1::Server`, improving server graceful shutdown behavior.
|
|
57
61
|
|
|
58
|
-
### v0.94.0
|
|
59
|
-
|
|
60
|
-
- Propagate all errors from background reader to active streams so that they are closed correctly (e.g. errors are not missed).
|
|
61
|
-
|
|
62
62
|
## See Also
|
|
63
63
|
|
|
64
64
|
- [benchmark-http](https://github.com/socketry/benchmark-http) — A benchmarking tool to report on web server concurrency.
|
data/releases.md
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: async-http
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.100.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -96,14 +96,14 @@ dependencies:
|
|
|
96
96
|
requirements:
|
|
97
97
|
- - "~>"
|
|
98
98
|
- !ruby/object:Gem::Version
|
|
99
|
-
version: '0.
|
|
99
|
+
version: '0.18'
|
|
100
100
|
type: :runtime
|
|
101
101
|
prerelease: false
|
|
102
102
|
version_requirements: !ruby/object:Gem::Requirement
|
|
103
103
|
requirements:
|
|
104
104
|
- - "~>"
|
|
105
105
|
- !ruby/object:Gem::Version
|
|
106
|
-
version: '0.
|
|
106
|
+
version: '0.18'
|
|
107
107
|
- !ruby/object:Gem::Dependency
|
|
108
108
|
name: io-stream
|
|
109
109
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
|
Binary file
|