class Crack::Handler::Method

Overview

The method handler looks for a param["_method"] and overrides the request.method with it. This will allow form submits using POST to override the method to match a RESTful backend. DEPENDENT: params handler

Defined in:

crack/method.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 header_key : String #

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

[View source]
def params_key : String #

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

[View source]