class Crack::Handler::CSRF

Overview

The CSRF Handler adds support for Cross Site Request Forgery. DEPENDENT: Session and Params Handlers.

Defined in:

crack/csrf.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Crack::Handler::Base

call(context) call, config(&) config

Class methods inherited from class Crack::Handler::Base

config(&) config

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.instance #

class method to return a singleton instance of this Controller


[View source]

Instance Method Detail

def call(context) #
Description copied from class Crack::Handler::Base

Execution of this handler.


[View source]
def check_methods : String #

[View source]
def check_methods=(check_methods : String) #

[View source]
def header_key : String #

[View source]
def header_key=(header_key : String) #

[View source]
def param_key : String #

[View source]
def param_key=(param_key : String) #

[View source]
def session_key : String #

[View source]
def session_key=(session_key : String) #

[View source]
def tag(context) #

[View source]
def token(context) #

[View source]