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