Module: HTTP::Headers::Mixin
Overview
Provides shared behavior for Request and Response.
Expects @headers
to be an instance of HTTP::Headers.
Instance Attribute Summary collapse
- #headers ⇒ HTTP::Headers readonly
Instance Method Summary collapse
-
#[] ⇒ nil, ...
Smart version of #get.
-
#[]= ⇒ void
Sets header.
Instance Attribute Details
#headers ⇒ HTTP::Headers (readonly)
23 24 25 |
# File 'lib/http/headers/mixin.rb', line 23 def headers @headers end |
Instance Method Details
#[] ⇒ nil, ...
Smart version of HTTP::Headers#get.
27 |
# File 'lib/http/headers/mixin.rb', line 27 def_delegator :headers, :[] |
#[]= ⇒ void
This method returns an undefined value.
Sets header.
31 |
# File 'lib/http/headers/mixin.rb', line 31 def_delegator :headers, :[]= |