Class: Castle::Headers::Extract
- Inherits:
-
Object
- Object
- Castle::Headers::Extract
- Defined in:
- lib/castle/headers/extract.rb
Overview
used for extraction of cookies and headers from the request
Instance Method Summary collapse
-
#call ⇒ Hash
Serialize HTTP headers.
-
#initialize(headers, config = nil) ⇒ Extract
constructor
A new instance of Extract.
Constructor Details
Instance Method Details
#call ⇒ Hash
Serialize HTTP headers
25 26 27 |
# File 'lib/castle/headers/extract.rb', line 25 def call @headers.each_with_object({}) { |(name, value), acc| acc[name] = header_value(name, value) } end |