protocol-http 0.23.1 → 0.23.2
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/headers.rb +2 -2
- data/lib/protocol/http/request.rb +15 -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: 947e9baba3d2edfe763209d4e035c7f985a03ca820340c7ea3175ff309176c5c
|
4
|
+
data.tar.gz: af8d0fb37ac0c458fc4cf4cb314de5c6f0a4167e46a29687b76845a75d12c815
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 133527d39a2eb474635e0cc56a0912c3812b7035bb4e6594a02f392e2275fd014028157198604da3359593351d7b2016ce83db0a28247a0af3f19c01822f004a
|
7
|
+
data.tar.gz: 9d342750268c9cb5e1d33ce339417f5930cc28a3efb3f2f9be0bb608ca751208619f3b11ea598fa022199d7e01512b50445a29c0c2d1dc0fe1616c15fe434568
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -340,11 +340,11 @@ module Protocol
|
|
340
340
|
return self
|
341
341
|
end
|
342
342
|
|
343
|
-
# @
|
343
|
+
# @yields [String, String] header key (lower case string) and value (as string).
|
344
344
|
def each(&block)
|
345
345
|
@all.each do |headers|
|
346
346
|
headers.each do |key, value|
|
347
|
-
yield key.downcase, value.to_s
|
347
|
+
yield key.to_s.downcase, value.to_s
|
348
348
|
end
|
349
349
|
end
|
350
350
|
end
|
@@ -39,13 +39,28 @@ module Protocol
|
|
39
39
|
@protocol = protocol
|
40
40
|
end
|
41
41
|
|
42
|
+
# The request scheme, usually one of "http" or "https".
|
42
43
|
attr_accessor :scheme
|
44
|
+
|
45
|
+
# The request authority, usually a hostname and port number.
|
43
46
|
attr_accessor :authority
|
47
|
+
|
48
|
+
# The request method, usually one of "GET", "HEAD", "POST", "PUT", "DELETE", "CONNECT" or "OPTIONS".
|
44
49
|
attr_accessor :method
|
50
|
+
|
51
|
+
# The request path, usually a path and query string.
|
45
52
|
attr_accessor :path
|
53
|
+
|
54
|
+
# The request version, usually "http/1.0", "http/1.1", "h2", or "h3".
|
46
55
|
attr_accessor :version
|
56
|
+
|
57
|
+
# The request headers, contains metadata associated with the request such as the user agent, accept (content type), accept-language, etc.
|
47
58
|
attr_accessor :headers
|
59
|
+
|
60
|
+
# The request body, an instance of Protocol::HTTP::Body::Readable or similar.
|
48
61
|
attr_accessor :body
|
62
|
+
|
63
|
+
# The request protocol, usually empty, but occasionally "websocket" or "webtransport", can be either single value `String` or multi-value `Array` of `String` instances. In HTTP/1, it is used to request a connection upgrade, and in HTTP/2 it is used to indicate a specfic protocol for the stream.
|
49
64
|
attr_accessor :protocol
|
50
65
|
|
51
66
|
# Send the request to the given connection.
|
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.23.
|
4
|
+
version: 0.23.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -41,7 +41,7 @@ cert_chain:
|
|
41
41
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
42
42
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
43
43
|
-----END CERTIFICATE-----
|
44
|
-
date: 2022-08-
|
44
|
+
date: 2022-08-13 00:00:00.000000000 Z
|
45
45
|
dependencies:
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|