protocol-http 0.56.0 → 0.56.1

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: 5409468cd5dfe153d3ab2ecc8fae839ff0a688e0d54a81aa402395e6b3de0f1e
4
- data.tar.gz: 11d700efbe0ecc425438a605f09643bba5bdde1e258bb0508e34428285b209f3
3
+ metadata.gz: 9874b094d1320bc400ff81a991311fa74a9b95d0a89adc9c4a4c41b89380bb2a
4
+ data.tar.gz: d2f9206d98a99557152c4758f266ef70d516072e2cfb9e0b6099dc4901bbbe95
5
5
  SHA512:
6
- metadata.gz: 90bf1b95afe9e830249676ab82cba8306c2184dfac7b105dff9c068eb67484f5002b73ec5141a1f42177042a4016c83a118a875df36f30ab65c8aa4b9b1ed2fb
7
- data.tar.gz: 43ce8ee9a1ace9ff2ae0be4d9ae90625415a504fad5162ebf7e8b1f487bab25bae0aa452260b7cd3fe00193c53835c80f730a1ca16ac142c90f827c852119497
6
+ metadata.gz: ec515579222f78ee8ee4353c346cf8d361bb244deefc4bf0deb5899fe28399c96e273fe8c1fca10e328b9e5872e5e2b40ea09fcf6c4463da704e097a58e795bb
7
+ data.tar.gz: d2b739b64da0af2db050ddccfe292e464ed1defc7310e0152ddeeff58b4455b725483dd76aa237f21ff44d0ae3b1ff798269f81ed2c69a7ba6a1f865c1bc3820
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- '�5uSe�T���̯�?r̳���nn��&��@�T��H�$�)ʣb�o�[�Y�����]br*=�ҵ[�O{R]
2
- 9�y���@�.A5}�F}�贿Xryc%��=�p�@�>��T�V���@��Ni~���¶��šϘD�lH��ў����L���T��]wv>�O;Jo���
1
+ eh����(߄�Rț²lN! �?KHeAe
2
+ P��9��K�V�hˊ�F�U��wWa��#ʞK�Upoj#n?O���.�Kk_)*�/�7FY�I` �����k�?\�5�~dT��4ƥn3P�5�r�G~��˯��4n�:T��-�"WLW�V��[/�4'R\Cم�O��gO��b�;����{��"�1��;�l�j��(�o�<O��G���g� =�pD��2���[mj�W$♿JJT����q����c�۷xc���߯���8�-WHZ�h����~
3
+ ��"F�i;5+���k�(�: $����|(H^�9
@@ -47,8 +47,8 @@ module Protocol
47
47
  strict_base64_encoded = ["#{username}:#{password}"].pack("m0")
48
48
 
49
49
  self.new(
50
- "Basic #{strict_base64_encoded}"
51
- )
50
+ "Basic #{strict_base64_encoded}"
51
+ )
52
52
  end
53
53
 
54
54
  # Whether this header is acceptable in HTTP trailers.
@@ -65,21 +65,7 @@ module Protocol
65
65
  end
66
66
  end
67
67
 
68
- # Initializes the cache control header with the given values.
69
- #
70
- # @parameter value [Array | String | Nil] an array of directives, a raw header value, or `nil` for an empty header.
71
- def initialize(value = nil)
72
- if value.is_a?(Array)
73
- super(value)
74
- elsif value.is_a?(String)
75
- super()
76
- self << value
77
- elsif value
78
- raise ArgumentError, "Invalid value: #{value.inspect}"
79
- end
80
- end
81
-
82
- # Adds a directive to the Cache-Control header. The value will be normalized to lowercase before being added.
68
+ # Adds a directive to the `cache-control` header. The value will be normalized to lowercase before being added.
83
69
  #
84
70
  # @parameter value [String] a raw header value containing directives to add.
85
71
  def << value
@@ -43,20 +43,6 @@ module Protocol
43
43
  end
44
44
  end
45
45
 
46
- # Initializes the connection header with the given values.
47
- #
48
- # @parameter value [Array | String | Nil] an array of directives, a raw header value, or `nil` for an empty header.
49
- def initialize(value = nil)
50
- if value.is_a?(Array)
51
- super(value)
52
- elsif value.is_a?(String)
53
- super()
54
- self << value
55
- elsif value
56
- raise ArgumentError, "Invalid value: #{value.inspect}"
57
- end
58
- end
59
-
60
46
  # Adds a directive to the `connection` header. The value will be normalized to lowercase before being added.
61
47
  #
62
48
  # @parameter value [String] a raw header value containing directives to add.
@@ -33,20 +33,6 @@ module Protocol
33
33
  end
34
34
  end
35
35
 
36
- # Initializes the priority header with the given values.
37
- #
38
- # @parameter value [Array | String | Nil] an array of directives, a raw header value, or `nil` for an empty header.
39
- def initialize(value = nil)
40
- if value.is_a?(Array)
41
- super(value)
42
- elsif value.is_a?(String)
43
- super()
44
- self << value
45
- elsif value
46
- raise ArgumentError, "Invalid value: #{value.inspect}"
47
- end
48
- end
49
-
50
36
  # Add a value to the priority header.
51
37
  #
52
38
  # @parameter value [String] a raw header value containing directives to add to the header.
@@ -83,20 +83,6 @@ module Protocol
83
83
  end
84
84
  end
85
85
 
86
- # Initializes the TE header with the given values.
87
- #
88
- # @parameter value [Array | String | Nil] an array of encodings, a raw header value, or `nil` for an empty header.
89
- def initialize(value = nil)
90
- if value.is_a?(Array)
91
- super(value)
92
- elsif value.is_a?(String)
93
- super()
94
- self << value
95
- elsif value
96
- raise ArgumentError, "Invalid value: #{value.inspect}"
97
- end
98
- end
99
-
100
86
  # Adds one or more comma-separated values to the TE header. The values are converted to lowercase for normalization.
101
87
  #
102
88
  # @parameter value [String] a raw header value containing one or more values separated by commas.
@@ -48,20 +48,6 @@ module Protocol
48
48
  end
49
49
  end
50
50
 
51
- # Initializes the transfer encoding header with the given values.
52
- #
53
- # @parameter value [Array | String | Nil] an array of encodings, a raw header value, or `nil` for an empty header.
54
- def initialize(value = nil)
55
- if value.is_a?(Array)
56
- super(value)
57
- elsif value.is_a?(String)
58
- super()
59
- self << value
60
- elsif value
61
- raise ArgumentError, "Invalid value: #{value.inspect}"
62
- end
63
- end
64
-
65
51
  # Adds one or more comma-separated values to the transfer encoding header. The values are converted to lowercase for normalization.
66
52
  #
67
53
  # @parameter value [String] a raw header value containing one or more values separated by commas.
@@ -33,20 +33,6 @@ module Protocol
33
33
  end
34
34
  end
35
35
 
36
- # Initializes a `Vary` header with the given values.
37
- #
38
- # @parameter value [Array | String | Nil] an array of header names, a raw header value, or `nil` for an empty header.
39
- def initialize(value = nil)
40
- if value.is_a?(Array)
41
- super(value)
42
- elsif value.is_a?(String)
43
- super()
44
- self << value
45
- elsif value
46
- raise ArgumentError, "Invalid value: #{value.inspect}"
47
- end
48
- end
49
-
50
36
  # Adds one or more comma-separated values to the `vary` header. The values are converted to lowercase for normalization.
51
37
  #
52
38
  # @parameter value [String] a raw header value containing one or more values separated by commas.
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP
8
- VERSION = "0.56.0"
8
+ VERSION = "0.56.1"
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.56.0
4
+ version: 0.56.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file