class Loveline::DirectoryCookieJar

Included Modules

Defined in:

loveline/cookie_jar.cr

Constant Summary

ENCODING_SEPARATOR = ":#"
MAX_ENCODED_PATH_LENGTH = 200

Linux can't handle filenames longer than 255 bytes; we need 42 for a sha1sum & separator and we'll leave a few left over

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Loveline::WriteableCookieJar

delete(cookie : Cookie) delete, save(cookie : Cookie, force : Bool) save

Instance methods inherited from module Loveline::CookieJar

get_all get_all, load_exact?(domain : String, path : String, name : String) load_exact?, search(request_host : String, request_path : String, request_secure : Bool, now : Time, *, name : String | Nil = nil, domain_matcher : Cookie::DomainMatcher, path_matcher : Cookie::PathMatcher) search

Constructor Detail

def self.new(dir : Loveline::Config::Path) #

[View source]

Class Method Detail

def self.filename_decode(str : String) : String | PartialString #

[View source]
def self.filename_encode(str : String) : String #

[View source]
def self.new_no_expansion(dir : String) #

[View source]

Instance Method Detail

def delete(cookie : Cookie) : Nil #

[View source]
def dir : String #

[View source]
def each_domain(matcher : Cookie::DomainMatcher, request_host : String, &) #

[View source]
def each_path(matcher : Cookie::PathMatcher, domain_dir : String, request_path : String, &) #

[View source]
def load_exact?(domain : String, path : String, name : String) : Cookie | Nil #

[View source]
def save(cookie : Cookie, force : Bool) #

[View source]
def search(request_host : String, request_path : String, request_secure : Bool, now : Time, *, name : String | Nil = nil, domain_matcher : Cookie::DomainMatcher, path_matcher : Cookie::PathMatcher) : Array(Cookie) #

[View source]