async-http 0.37.6 → 0.37.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd8279a618284d40c1e906c54b42508b73cb47f3665b4a6925024f8349510772
4
- data.tar.gz: 9c067c157a475baecbf27869200401a75aa55d3a545372df336ecf168c2c4d95
3
+ metadata.gz: 574519636dc41abd3e1da545016ea0fce7094f22af9a8071cbd47bf182e1a39a
4
+ data.tar.gz: f5acbdcfca9bef6d779f2c1b20d38dd0ebb3a17beb29090faef7ca4388c13d5b
5
5
  SHA512:
6
- metadata.gz: b5d089c9ac099ebbfeba3e1f946e5e925790eb61ae1aca8301f4f77658e57fe6f8f0bfef131b80c4284637933105b4a32ad2d421c149b2f5d2ae15834ef21266
7
- data.tar.gz: aa4f58a159c3ea1f8205aada55efe3bc0e68489b0a63b5c82ec8688750f360aad88da2b591fc71690c3f6c79acf9e5fe575b397e1341cf3ac39644c5b0aa32ba
6
+ metadata.gz: a202779e32f46dd24eaf23f791f003118f728c9846f4608778c7111aaebad02bfe39a5346363b7f3d3631f01ca6b5deafe626bb87a5744dd7ea03f06429b5ac3
7
+ data.tar.gz: 7fa9b73b247ed2c7abd2b812aa6621d35dfc5a4461f2e7cb6c3aa1457fdf797a365f97c9f5bbe90c3addd195fe2b3207c23a2cabee61532c76336e7287fafdcf
@@ -1,5 +1,4 @@
1
1
  language: ruby
2
- sudo: required
3
2
  dist: xenial
4
3
  cache: bundler
5
4
 
@@ -9,10 +8,6 @@ addons:
9
8
  - wrk
10
9
  - apache2-utils
11
10
 
12
- before_script:
13
- - gem update --system
14
- - gem install bundler
15
-
16
11
  matrix:
17
12
  include:
18
13
  - rvm: 2.3
@@ -30,8 +30,10 @@ module Async
30
30
  class Closed < StandardError
31
31
  end
32
32
 
33
- def initialize(length = nil)
34
- @queue = Async::Queue.new
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
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module HTTP
23
- VERSION = "0.37.6"
23
+ VERSION = "0.37.7"
24
24
  end
25
25
  end
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.6
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-06 00:00:00.000000000 Z
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
- rubyforge_project:
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.