abstract struct Kemal::Controller

Defined in:

kemal/controller.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : HTTP::Server::Context) #

[View source]

Instance Method Detail

def context : HTTP::Server::Context #

[View source]
def error(field, message, status : HTTP::Status | Nil = nil) #

[View source]
def error(message : String) #

[View source]
def error_for?(field : String) : String | Nil #

[View source]
def error_for_base : String | Nil #

[View source]
def errors : Errors | Nil #

[View source]
def has_error? : Bool #

[View source]
def redirect(*args, **options) #

[View source]
def redirect(*args, **options, &) #

[View source]
def request(*args, **options) #

[View source]
def request(*args, **options, &) #

[View source]
def response(*args, **options) #

[View source]
def response(*args, **options, &) #

[View source]
def session(*args, **options) #

[View source]
def session(*args, **options, &) #

[View source]