Method: HTTPX::Headers#get
- Defined in:
- lib/httpx/headers.rb
#get(field) ⇒ Object
returns the values for the field
header in array format. This method is more internal, and for this reason doesn’t try to “correct” the user input, i.e. it doesn’t downcase the key.
162 163 164 |
# File 'lib/httpx/headers.rb', line 162 def get(field) @headers[field] || EMPTY end |