File tree Expand file tree Collapse file tree 7 files changed +3
-87
lines changed
Expand file tree Collapse file tree 7 files changed +3
-87
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ def self.basic(username, password)
4747 strict_base64_encoded = [ "#{ username } :#{ password } " ] . pack ( "m0" )
4848
4949 self . new (
50- "Basic #{ strict_base64_encoded } "
51- )
50+ "Basic #{ strict_base64_encoded } "
51+ )
5252 end
5353
5454 # Whether this header is acceptable in HTTP trailers.
Original file line number Diff line number Diff line change @@ -65,21 +65,7 @@ def self.coerce(value)
6565 end
6666 end
6767
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.
8369 #
8470 # @parameter value [String] a raw header value containing directives to add.
8571 def << value
Original file line number Diff line number Diff line change @@ -43,20 +43,6 @@ def self.coerce(value)
4343 end
4444 end
4545
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-
6046 # Adds a directive to the `connection` header. The value will be normalized to lowercase before being added.
6147 #
6248 # @parameter value [String] a raw header value containing directives to add.
Original file line number Diff line number Diff line change @@ -33,20 +33,6 @@ def self.coerce(value)
3333 end
3434 end
3535
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-
5036 # Add a value to the priority header.
5137 #
5238 # @parameter value [String] a raw header value containing directives to add to the header.
Original file line number Diff line number Diff line change @@ -83,20 +83,6 @@ def self.coerce(value)
8383 end
8484 end
8585
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-
10086 # Adds one or more comma-separated values to the TE header. The values are converted to lowercase for normalization.
10187 #
10288 # @parameter value [String] a raw header value containing one or more values separated by commas.
Original file line number Diff line number Diff line change @@ -48,20 +48,6 @@ def self.coerce(value)
4848 end
4949 end
5050
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-
6551 # Adds one or more comma-separated values to the transfer encoding header. The values are converted to lowercase for normalization.
6652 #
6753 # @parameter value [String] a raw header value containing one or more values separated by commas.
Original file line number Diff line number Diff line change @@ -33,20 +33,6 @@ def self.coerce(value)
3333 end
3434 end
3535
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-
5036 # Adds one or more comma-separated values to the `vary` header. The values are converted to lowercase for normalization.
5137 #
5238 # @parameter value [String] a raw header value containing one or more values separated by commas.
You can’t perform that action at this time.
0 commit comments