class Amber::Router::Cookies::Store

Included Modules

Defined in:

amber/router/cookies/store.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(host : Nil | String = nil, secret : String = Random::Secure.urlsafe_base64(32), secure : Bool = false) #

[View source]

Class Method Detail

def self.build(request, secret) #

[View source]
def self.from_headers(headers) #

[View source]

Instance Method Detail

def [](name) #

[View source]
def []=(name, cookie : HTTP::Cookie) #

[View source]
def []=(name, value) #

[View source]
def cookies : Hash(String, String) #

[View source]
def delete(name : String, path = "/", domain : String | Nil = nil) #

[View source]
def deleted?(name) #

[View source]
def each(& : T -> _) #
Description copied from module Enumerable(String)

Must yield this collection's elements to the block.


[View source]
def each #

[View source]
def encrypted #

[View source]
def get(name) #

[View source]
def host : String | Nil #

[View source]
def host=(host : String | Nil) #

[View source]
def permanent #

[View source]
def secret : String #

[View source]
def secure : Bool #

[View source]
def secure=(secure : Bool) #

[View source]
def set(name : String, value : String, path : String = "/", expires : Time | Nil = nil, domain : String | Nil = nil, secure : Bool = false, http_only : Bool = false, extension : String | Nil = nil) #

[View source]
def signed #

[View source]
def update(cookies) #

[View source]
def write(headers) #

[View source]
def write_cookie?(cookie) #

[View source]