Cookie models an HTTP cookie used to pass data between the server and brower as defined by RFC 2965 and RFC 2109. See WebReq.cookies and WebRes.cookies.
Slots
- commentSource
-
Str? commentProvided to allow users to organize their cookies. Defaults to null.
- domainSource
-
Str? domainSpecifies the domain for which the cookie is valid. An explicit domain must always start with a dot. If null (the default) then the cookie only applies to the server which set it.
- fromStrSource
-
Parse a HTTP cookie header name/value pair. Throw ParseErr if not formatted correctly.
- maxAgeSource
-
Duration? maxAgeDefines the lifetime of the cookie, after the the max-age elapses the client should discard the cookie. The duration is floored to seconds (fractional seconds are truncated). If maxAge is null (the default) then the cookie persists until the client is shutdown. If zero is specified, the cookie is discarded immediately.
- nameSource
-
Str nameName of the cookie. Names must be HTTP tokens and never start with
$. - pathSource
-
Str? path := "/"Specifies the subset of URLs to which the cookie applies. If set to "/" (the default), then the cookie applies to all paths. If the path is null, it as assumed to be the same path as the document being described by the header which contains the cookie.
- secureSource
-
Bool secure := falseIf true, then the client only sends this cookie using a secure protocol such as HTTPS. Defaults to false.
- toStrSource
-
override Str toStr()Overrides sys::Obj.toStr
Return the cookie formatted as an HTTP header.
- valueSource
-
Str valueValue string of the cookie.
- versionSource
-
Str version := "1"Specified which version of HTTP statement management is being used. Default is "1".