protocol-http 0.43.0 → 0.45.0

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: 7bdd0ca9356d15e047333ae5e070710d5453bece234e484d236656edb984eb3b
4
- data.tar.gz: eb605cfc6aa68422dd8142ba7e86fb0ec9eef55f8415e8cc0e9066af714a4aa7
3
+ metadata.gz: 989a6411106c9c491df6a8916877cc9d1abbd4509da3e859e5d627723edc8daa
4
+ data.tar.gz: 20fc3651bf5241e7c3fb55d286ff3172a09363a747ac97f5608eb4a7533aece7
5
5
  SHA512:
6
- metadata.gz: 493688f8e6e8a417bfdb49fd53103e07ccca2f164613e5cea2ce0298b4eb4c4e251add7c1873d178f38b1cfb984267e277c4388f60b9e36b013d1f8bac950b57
7
- data.tar.gz: '0590a15ef7f6447efc5c84a0c6ce7e796a1b1b8d91975b10f895a5c0d9c450402f7adeb7b504785179e6fe68f776a7113050adc2458dc84e7f4330b6faec4774'
6
+ metadata.gz: dcc3a33c4b19b130df7825a44c4bdf6bc2c631fa9a073299180fd34256436e89ab012087a2adfebc37f1f6f39d4d5e4967fd14ef481d7c150328edf0ef95d088
7
+ data.tar.gz: 59b1398b707f7c79ca6055a45461006f1cffd5d90c862e05c0924baaaa5144161193b48c5d357f9648431dd57f18da57854e6eb2af56f4b0924ad0772e62a349
checksums.yaml.gz.sig CHANGED
Binary file
@@ -129,6 +129,22 @@ module Protocol
129
129
  read_partial(length, buffer) or raise EOFError, "End of file reached!"
130
130
  end
131
131
 
132
+ # Iterate over each chunk of data in the stream.
133
+ #
134
+ # @yields {|chunk| ...} Each chunk of data.
135
+ def each(&block)
136
+ return to_enum unless block_given?
137
+
138
+ if @buffer
139
+ yield @buffer
140
+ @buffer = nil
141
+ end
142
+
143
+ while chunk = read_next
144
+ yield chunk
145
+ end
146
+ end
147
+
132
148
  # Read data from the stream without blocking if possible.
133
149
  def read_nonblock(length, buffer = nil, exception: nil)
134
150
  @buffer ||= read_next
@@ -212,6 +212,7 @@ module Protocol
212
212
  "from" => false,
213
213
  "location" => false,
214
214
  "max-forwards" => false,
215
+ "retry-after" => false,
215
216
 
216
217
  # Custom headers:
217
218
  "connection" => Header::Connection,
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP
8
- VERSION = "0.43.0"
8
+ VERSION = "0.45.0"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.0
4
+ version: 0.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -47,7 +47,7 @@ cert_chain:
47
47
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
48
48
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
49
49
  -----END CERTIFICATE-----
50
- date: 2024-11-09 00:00:00.000000000 Z
50
+ date: 2024-11-26 00:00:00.000000000 Z
51
51
  dependencies: []
52
52
  description:
53
53
  email:
metadata.gz.sig CHANGED
Binary file