async-http 0.37.6 → 0.37.7
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
- data/.travis.yml +0 -5
- data/lib/async/http/body/writable.rb +4 -4
- data/lib/async/http/protocol/http2/response.rb +1 -1
- data/lib/async/http/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 574519636dc41abd3e1da545016ea0fce7094f22af9a8071cbd47bf182e1a39a
|
4
|
+
data.tar.gz: f5acbdcfca9bef6d779f2c1b20d38dd0ebb3a17beb29090faef7ca4388c13d5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a202779e32f46dd24eaf23f791f003118f728c9846f4608778c7111aaebad02bfe39a5346363b7f3d3631f01ca6b5deafe626bb87a5744dd7ea03f06429b5ac3
|
7
|
+
data.tar.gz: 7fa9b73b247ed2c7abd2b812aa6621d35dfc5a4461f2e7cb6c3aa1457fdf797a365f97c9f5bbe90c3addd195fe2b3207c23a2cabee61532c76336e7287fafdcf
|
data/.travis.yml
CHANGED
@@ -30,8 +30,10 @@ module Async
|
|
30
30
|
class Closed < StandardError
|
31
31
|
end
|
32
32
|
|
33
|
-
|
34
|
-
|
33
|
+
# @param [Integer] length The length of the response body if known.
|
34
|
+
# @param [Async::Queue] queue Specify a different queue implementation, e.g. `Async::LimitedQueue.new(8)` to enable back-pressure streaming.
|
35
|
+
def initialize(length = nil, queue: Async::Queue.new)
|
36
|
+
@queue = queue
|
35
37
|
|
36
38
|
@length = length
|
37
39
|
|
@@ -83,8 +85,6 @@ module Async
|
|
83
85
|
raise(@error || Closed)
|
84
86
|
end
|
85
87
|
|
86
|
-
# TODO should this yield if the queue is full?
|
87
|
-
|
88
88
|
@count += 1
|
89
89
|
@queue.enqueue(chunk)
|
90
90
|
end
|
@@ -109,7 +109,7 @@ module Async
|
|
109
109
|
[PATH, request.path],
|
110
110
|
]
|
111
111
|
|
112
|
-
# To ensure that the HTTP/1.1 request line can be reproduced accurately, this pseudo-header field MUST be omitted when translating from an HTTP/1.1 request that has a request target in origin or asterisk form (see [RFC7230], Section 5.3). Clients that generate HTTP/2 requests directly SHOULD use the :authority pseudo-header field instead of the Host header field.
|
112
|
+
# To ensure that the HTTP/1.1 request line can be reproduced accurately, this pseudo-header field MUST be omitted when translating from an HTTP/1.1 request that has a request target in origin or asterisk form (see [RFC7230], Section 5.3). Clients that generate HTTP/2 requests directly SHOULD use the :authority pseudo-header field instead of the Host header field.
|
113
113
|
if authority = request.authority
|
114
114
|
pseudo_headers << [AUTHORITY, authority]
|
115
115
|
end
|
data/lib/async/http/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.37.
|
4
|
+
version: 0.37.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -216,8 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
216
|
- !ruby/object:Gem::Version
|
217
217
|
version: '0'
|
218
218
|
requirements: []
|
219
|
-
|
220
|
-
rubygems_version: 2.7.8
|
219
|
+
rubygems_version: 3.0.0.beta3
|
221
220
|
signing_key:
|
222
221
|
specification_version: 4
|
223
222
|
summary: A HTTP client and server library.
|