Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
HTTP::CookieJar
Inherits
Enumerable
<
Reference
<
Object
Constants
VERSION = {{ (`shards version /tmp/tmp.imde
JD
/src/src/http/cookie_jar`).chomp.stringify }}
Constructors
from_json
(source :
String
|
IO
, policy :
HTTP::CookiePolicy
=
HTTP::DefaultCookiePolicy
.new) : self
Source
new
(policy :
HTTP::CookiePolicy
=
HTTP::DefaultCookiePolicy
.new)
Source
Instance methods
add
(uri :
URI
|
String
, cookie :
HTTP::Cookie
) : self
Source
add
(uri :
URI
|
String
, cookies :
HTTP::Cookies
) : self
Source
add_cookie_header
(headers :
HTTP::Headers
, uri :
URI
|
String
) :
HTTP::Headers
Source
clear
(domain :
String
, path :
String
|
Nil
= nil, name :
String
|
Nil
= nil) :
Nil
Source
clear
Source
clear_expired
(now :
Time
=
Time
.utc) :
Nil
Source
cookies_for
(uri :
URI
|
String
) :
HTTP::Cookies
Source
each
Must yield this collection's elements to the block.
Source
extract
(headers :
HTTP::Headers
, uri :
URI
|
String
) : self
Source
policy
Source
to_json
(json :
JSON::Builder
) :
Nil
Source
Nested types
HTTP::CookieJar::Entry
HTTP::CookieJar::Error
HTTP::CookieJar::InvalidCookie
HTTP::CookieJar::URIUtils