protocol-http 0.43.0 → 0.45.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/protocol/http/body/stream.rb +16 -0
- data/lib/protocol/http/headers.rb +1 -0
- data/lib/protocol/http/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- 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: 989a6411106c9c491df6a8916877cc9d1abbd4509da3e859e5d627723edc8daa
|
4
|
+
data.tar.gz: 20fc3651bf5241e7c3fb55d286ff3172a09363a747ac97f5608eb4a7533aece7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
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
|