class Protocol::HTTP::Header::Cookie

The Cookie HTTP request header contains stored HTTP cookies previously sent by the server with the Set-Cookie header.

Public Instance Methods

to_h() click to toggle source
# File lib/protocol/http/header/cookie.rb, line 31
def to_h
        cookies = self.collect do |string|
                HTTP::Cookie.parse(string)
        end
        
        cookies.map{|cookie| [cookie.name, cookie]}.to_h
end