class HTTP::Cookie

Overview

Represents a cookie with all its attributes. Provides convenient access and modification of them.

NOTE To use Cookie, you must explicitly import it with require "http/cookie"

Defined in:

charms/cookie.cr

Instance Method Summary

Instance Method Detail

def domain(value : String) : HTTP::Cookie #

[View source]
def expires(value : Time) : HTTP::Cookie #

[View source]
def http_only(value : Bool) : HTTP::Cookie #

[View source]
def name(value : String) : HTTP::Cookie #

[View source]
def path(value : String) : HTTP::Cookie #

[View source]
def permanent : HTTP::Cookie #

[View source]
def samesite(value : HTTP::Cookie::SameSite) : HTTP::Cookie #

[View source]
def secure(value : Bool) : HTTP::Cookie #

[View source]
def value(string : String) : HTTP::Cookie #

[View source]