Method: Bandwidth::HttpRequest#add_header

Defined in:
lib/bandwidth/http/http_request.rb

#add_header(name, value) ⇒ Object

Add a header to the HttpRequest.

Parameters:

  • The (String)

    name of the header.

  • The (String)

    value of the header.



30
31
32
# File 'lib/bandwidth/http/http_request.rb', line 30

def add_header(name, value)
  @headers[name] = value
end