Module: EacEnvs::Http::Response::Headers
- Defined in:
- lib/eac_envs/http/response/headers.rb
Constant Summary collapse
- COMMON_HEADERS =
%w[Content-Type].freeze
- HEADER_LINE_PARSER =
/\A([^:]+):(.*)\z/.to_parser do |m| [m[1].strip, m[2].strip] end
Instance Method Summary collapse
Instance Method Details
#header(name) ⇒ Object
14 15 16 |
# File 'lib/eac_envs/http/response/headers.rb', line 14 def header(name) hash_search(headers, name) end |
#headers ⇒ Hash<String, String>
19 20 21 |
# File 'lib/eac_envs/http/response/headers.rb', line 19 def headers performed.headers.to_hash end |