class Loveline::DirectoryCookieJar
- Loveline::DirectoryCookieJar
- Reference
- Object
Included Modules
Defined in:
loveline/cookie_jar.crConstant 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
- .filename_decode(str : String) : String | PartialString
- .filename_encode(str : String) : String
- .new_no_expansion(dir : String)
Instance Method Summary
- #delete(cookie : Cookie) : Nil
- #dir : String
- #each_domain(matcher : Cookie::DomainMatcher, request_host : String, &)
- #each_path(matcher : Cookie::PathMatcher, domain_dir : String, request_path : String, &)
- #load_exact?(domain : String, path : String, name : String) : Cookie | Nil
- #save(cookie : Cookie, force : Bool)
- #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)
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
Class Method Detail
Instance Method Detail
def each_path(matcher : Cookie::PathMatcher, domain_dir : String, request_path : String, &)
#
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)
#