Class: Protocol::HTTP::Header::Cookie
- Defined in:
- lib/protocol/http/header/cookie.rb
Overview
The Cookie HTTP request header contains stored HTTP cookies previously sent by the server with the Set-Cookie header.
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Multiple
Constructor Details
This class inherits a constructor from Protocol::HTTP::Header::Multiple
Instance Method Details
#to_h ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/protocol/http/header/cookie.rb', line 30 def to_h = self.collect do |string| HTTP::Cookie.parse(string) end .map{|| [.name, ]}.to_h end |