You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# - #[]: Returns the string value for the given field.
116
-
# - #content_length: Returns the integer value of field +:content-length+.
117
-
# - #content_range: Returns the Range value of field +:content-range+.
118
-
# - #content_type: Returns the string value of field +:content-type+.
119
-
# - #main_type: Returns first part of the string value of field +:content-type+.
120
-
# - #sub_type: Returns second part of the string value of field +:content-type+.
121
-
# - #range: Returns an array of Range objects, or +nil+.
122
-
# - #range_length: Returns the integer length of the range given in field +:range+.
123
-
# - #type_params: Returns the string parameters for +:content-type+.
111
+
# - #content_length: Returns the integer value of field <tt>'Content-Length'</tt>.
112
+
# - #content_range: Returns the Range value of field <tt>'Content-Range'</tt>.
113
+
# - #content_type: Returns the string value of field <tt>'Content-Type'</tt>.
114
+
# - #main_type: Returns first part of the string value of field <tt>'Content-Type'</tt>.
115
+
# - #sub_type: Returns second part of the string value of field <tt>'Content-Type'</tt>.
116
+
# - #range: Returns an array of Range objects of field <tt>'Range'</tt>, or +nil+.
117
+
# - #range_length: Returns the integer length of the range given in field <tt>'Content-Range'</tt>.
118
+
# - #type_params: Returns the string parameters for <tt>'Content-Type'</tt>.
124
119
#
125
120
# === Setters
126
121
#
127
122
# - #[]=: Sets the string or array value for the given field.
128
-
# - #basic_auth: Sets the string authorization header for +:Basic+ authorization.
129
-
# - #content_length=: Sets the integer length for field +:content-length+.
130
-
# - #content_type=: Sets the string value for field +:content-type+.
131
-
# - #proxy_basic_auth: Set Proxy-Authorization: header for “Basic” authorization.
132
-
# - #range=: Sets the HTTP Range: header. Accepts either a Range object as a single argument, or a beginning index and a length from that index. Example:
123
+
# - #basic_auth: Sets the string authorization header for <tt>'Authorization'</tt>.
124
+
# - #content_length=: Sets the integer length for field <tt>'Content-Length</tt>.
125
+
# - #content_type=: Sets the string value for field <tt>'Content-Type'</tt>.
126
+
# - #proxy_basic_auth: Sets the string authorization header for <tt>'Proxy-Authorization'</tt>.
127
+
# - #range=: Sets the value for field +'Range'+.
133
128
#
134
129
# === Queries
135
130
#
136
-
# - #chunked?: Returns whether field +:transfer-encoding+ is set to <tt>'chunked'</tt>.
137
-
# - #connection_close?: Returns whether field +:connection+ is set to <tt>'close'</tt>.
138
-
# - #connection_keep_alive?: Returns whether field +:connection+ is set to <tt>'keep-alive'</tt>.
131
+
# - #chunked?: Returns whether field <tt>'Transfer-Encoding'</tt> is set to <tt>'chunked'</tt>.
132
+
# - #connection_close?: Returns whether field <tt>'Connection'</tt> is set to <tt>'close'</tt>.
133
+
# - #connection_keep_alive?: Returns whether field <tt>'Connection'</tt> is set to <tt>'keep-alive'</tt>.
139
134
# - #key?: Returns whether a given field exists.
140
135
#
141
136
# === Form Setters
142
137
#
143
138
# - #set_form: Sets an HTML form data set.
144
-
# - #set_form_data: Set header fields and a body from HTML form data.
139
+
# - #set_form_data: Sets header fields and a body from HTML form data.
145
140
#
146
141
# === Iterators
147
142
#
@@ -151,6 +146,15 @@
151
146
# - #each_name: Passes each field name to the block.
152
147
# - #each_value: Passes each field value to the block.
153
148
#
149
+
# == Hash of Headers
150
+
#
151
+
# Each of the iterator methods above returns a hash of the headers of +self+.
152
+
# Note that modifying that returned hash actually modifies the headers:
0 commit comments