Method: Protocol::HTTP::Headers#add

Defined in:
lib/protocol/http/headers.rb

#add(key, value) ⇒ Object

Add the specified header key value pair.

Parameters:

  • key (String)

    the header key.

  • value (String)

    the header value to assign.



182
183
184
# File 'lib/protocol/http/headers.rb', line 182

def add(key, value)
	self[key] = value
end