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 +4 -4
- checksums.yaml.gz.sig +3 -2
- data/lib/protocol/http/header/authorization.rb +2 -2
- data/lib/protocol/http/header/cache_control.rb +1 -15
- data/lib/protocol/http/header/connection.rb +0 -14
- data/lib/protocol/http/header/priority.rb +0 -14
- data/lib/protocol/http/header/te.rb +0 -14
- data/lib/protocol/http/header/transfer_encoding.rb +0 -14
- data/lib/protocol/http/header/vary.rb +0 -14
- data/lib/protocol/http/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- 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: 9874b094d1320bc400ff81a991311fa74a9b95d0a89adc9c4a4c41b89380bb2a
|
|
4
|
+
data.tar.gz: d2f9206d98a99557152c4758f266ef70d516072e2cfb9e0b6099dc4901bbbe95
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec515579222f78ee8ee4353c346cf8d361bb244deefc4bf0deb5899fe28399c96e273fe8c1fca10e328b9e5872e5e2b40ea09fcf6c4463da704e097a58e795bb
|
|
7
|
+
data.tar.gz: d2b739b64da0af2db050ddccfe292e464ed1defc7310e0152ddeeff58b4455b725483dd76aa237f21ff44d0ae3b1ff798269f81ed2c69a7ba6a1f865c1bc3820
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
�eh����(߄�Rț²lN!�?K�HeAe
|
|
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��-�"W�LW�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
|
|
@@ -65,21 +65,7 @@ module Protocol
|
|
|
65
65
|
end
|
|
66
66
|
end
|
|
67
67
|
|
|
68
|
-
#
|
|
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.
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|