class HTTP::Cookie
- HTTP::Cookie
- Reference
- Object
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.crInstance Method Summary
- #domain(value : String) : HTTP::Cookie
- #expires(value : Time) : HTTP::Cookie
- #http_only(value : Bool) : HTTP::Cookie
- #name(value : String) : HTTP::Cookie
- #path(value : String) : HTTP::Cookie
- #permanent : HTTP::Cookie
- #samesite(value : HTTP::Cookie::SameSite) : HTTP::Cookie
- #secure(value : Bool) : HTTP::Cookie
- #value(string : String) : HTTP::Cookie