class Arachnid::SessionCache
- Arachnid::SessionCache
- Reference
- Object
Overview
Stores active HTTP Sessions organized by scheme, host-name and port.
Defined in:
arachnid/session_cache.crConstructors
-
.new(read_timeout : Int32? = nil, connect_timeout : Int32? = nil, max_redirects : Int32? = nil, do_not_track : Bool? = nil)
Create a new session cache
Instance Method Summary
-
#[](url)
Provides an active session for a given URL.
-
#active?(url)
Determines if there is an active session for the given URL
-
#clear
Clears the session cache
-
#connect_timeout : Int32
Optional connect timeout.
-
#connect_timeout=(connect_timeout : Int32)
Optional connect timeout.
-
#do_not_track=(do_not_track : Bool)
Should we set a DNT (Do Not Track) header?
-
#do_not_track? : Bool
Should we set a DNT (Do Not Track) header?
-
#kill!(url)
Destroys an HTTP session for the given scheme, host, and port.
-
#max_redirects : Int32?
Max redirects to follow.
-
#max_redirects=(max_redirects : Int32?)
Max redirects to follow.
-
#read_timeout : Int32
Optional read timeout.
-
#read_timeout=(read_timeout : Int32)
Optional read timeout.
Constructor Detail
def self.new(read_timeout : Int32? = nil, connect_timeout : Int32? = nil, max_redirects : Int32? = nil, do_not_track : Bool? = nil)
#
Create a new session cache