struct Protocol::Network::CookieParam

Overview

Cookie parameter object

Included Modules

Defined in:

protocol/network.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def domain : String | Nil #

Cookie domain.


[View source]
def expires : TimeSinceEpoch | Nil #

Cookie expiration date, session cookie if not set


[View source]
def http_only : Bool | Nil #

True if cookie is http-only.


[View source]
def name : String #

Cookie name.


[View source]
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. If not set, the cookie will be set as not partitioned.


[View source]
def path : String | Nil #

Cookie path.


[View source]
def priority : CookiePriority | Nil #

Cookie Priority.


[View source]
def same_party : Bool | Nil #

True if cookie is SameParty.


[View source]
def same_site : CookieSameSite | Nil #

Cookie SameSite type.


[View source]
def secure : Bool | Nil #

True if cookie is secure.


[View source]
def source_port : Int::Primitive | Nil #

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.


[View source]
def source_scheme : CookieSourceScheme | Nil #

Cookie source scheme type.


[View source]
def url : String | Nil #

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.


[View source]
def value : String #

Cookie value.


[View source]