class Arachnid::CookieJar

Overview

As hosts are scanned their cookies are stored here.

Included Modules

Defined in:

arachnid/cookie_jar.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Creates a new CookieJar


[View source]

Instance Method Detail

def [](host : String) #

Returns all relevant cookies in a single string for the named host or domain.


[View source]
def []=(host : String, cookies : HTTP::Cookies) #

Add a cookie to the jar for a particular domain.


[View source]
def clear! #

Clear out the jar, removing all stored cookies.


[View source]
def cookies_for_host(host) #

Returns raw cookie value pairs for a given host. Includes cookies set on parent domains.


[View source]
def each(&block) #

Iterates over the host-name and cookie value pairs in the jar.


[View source]
def for_host(host) #

Returns the pre-encoded Cookie for a given host.


[View source]
def from_resource(resource) #

Retrieve cookies for a domain from the response.


[View source]
def inspect #

Inspects the cookie jar.


[View source]
def size #

Size of the cookie jar.


[View source]