struct Protocol::Network::Cookie
- Protocol::Network::Cookie
- Struct
- Value
- Object
Overview
Cookie object
Included Modules
- JSON::Serializable
Defined in:
protocol/network.crConstructors
Instance Method Summary
-
#domain : String
Cookie domain.
- #expires : Time
-
#http_only : Bool
True if cookie is http-only.
-
#name : String
Cookie name.
-
#partition_key : String | Nil
Cookie partition key.
-
#partition_key_opaque : Bool | Nil
True if cookie partition key is opaque.
-
#path : String
Cookie path.
-
#priority : CookiePriority
Cookie Priority
-
#same_party : Bool
True if cookie is SameParty.
-
#same_site : CookieSameSite | Nil
Cookie SameSite type.
-
#secure : Bool
True if cookie is secure.
-
#session : Bool
True in case of session cookie.
-
#size : Int::Primitive
Cookie size.
-
#source_port : Int::Primitive
Cookie source port.
-
#source_scheme : CookieSourceScheme
Cookie source scheme type.
-
#value : String
Cookie value.
Constructor Detail
Instance Method Detail
def partition_key : String | Nil
#
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.
def source_port : Int::Primitive
#
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.