Method: HTTPX::Headers#add

Defined in:
lib/httpx/headers.rb

#add(field, value) ⇒ Object Also known as: add_header

adds additional value to the existing, for header field.



79
80
81
# File 'lib/httpx/headers.rb', line 79

def add(field, value)
  (@headers[downcased(field)] ||= []) << String(value)
end