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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee01a36222c1035b06230948ac4afd7d5f8894416c7db3f46f3d2ff3735c84c4
4
- data.tar.gz: 809f145dc27bdd25d8d39467b7583a1778c21e0f91d93e5bc5e697324b1e9d29
3
+ metadata.gz: 947e9baba3d2edfe763209d4e035c7f985a03ca820340c7ea3175ff309176c5c
4
+ data.tar.gz: af8d0fb37ac0c458fc4cf4cb314de5c6f0a4167e46a29687b76845a75d12c815
5
5
  SHA512:
6
- metadata.gz: 4188214bf6e420e204a689484d2469e0d577270541a803bf366ceafa5fd8edcd652649a59616ce1b965744017785e348ea4a8ecdb396324af1c0815c423715da
7
- data.tar.gz: 3450d3826c351d7e4da8a94bc4f6d9dac81fd8386a7c2eac4753077da0055344e924d7283090cc1f443261060dec0c0a1d5803f851e1690df3dc1405552a05b6
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
- # @yield [String, String] header key (lower case) and value (as string).
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.
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Protocol
24
24
  module HTTP
25
- VERSION = "0.23.1"
25
+ VERSION = "0.23.2"
26
26
  end
27
27
  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.23.1
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-07 00:00:00.000000000 Z
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