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.
133 134 135 |
# File 'lib/httpx/headers.rb', line 133 def get(field) @headers[field] || EMPTY end |