struct Protocol::Network::CookieParam
- Protocol::Network::CookieParam
- Struct
- Value
- Object
Overview
Cookie parameter object
Included Modules
- JSON::Serializable
Defined in:
protocol/network.crConstructors
Instance Method Summary
-
#domain : String | Nil
Cookie domain.
-
#expires : TimeSinceEpoch | Nil
Cookie expiration date, session cookie if not set
-
#http_only : Bool | Nil
True if cookie is http-only.
-
#name : String
Cookie name.
-
#partition_key : String | Nil
Cookie partition key.
-
#path : String | Nil
Cookie path.
-
#priority : CookiePriority | Nil
Cookie Priority.
-
#same_party : Bool | Nil
True if cookie is SameParty.
-
#same_site : CookieSameSite | Nil
Cookie SameSite type.
-
#secure : Bool | Nil
True if cookie is secure.
-
#source_port : Int::Primitive | Nil
Cookie source port.
-
#source_scheme : CookieSourceScheme | Nil
Cookie source scheme type.
-
#url : String | Nil
The request-URI to associate with the setting of the cookie.
-
#value : String
Cookie value.
Constructor Detail
Instance Method Detail
Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. If not set, the cookie will be set as not partitioned.
Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.