struct Protocol::Network::Cookie

Overview

Cookie 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 #

Cookie domain.


[View source]
def expires : Time #

[View source]
def http_only : Bool #

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.


[View source]
def partition_key_opaque : Bool | Nil #

True if cookie partition key is opaque.


[View source]
def path : String #

Cookie path.


[View source]
def priority : CookiePriority #

Cookie Priority


[View source]
def same_party : Bool #

True if cookie is SameParty.


[View source]
def same_site : CookieSameSite | Nil #

Cookie SameSite type.


[View source]
def secure : Bool #

True if cookie is secure.


[View source]
def session : Bool #

True in case of session cookie.


[View source]
def size : Int::Primitive #

Cookie size.


[View source]
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.


[View source]
def source_scheme : CookieSourceScheme #

Cookie source scheme type.


[View source]
def value : String #

Cookie value.


[View source]