abstract class Runcobo::Action

Included Modules

Extended Modules

Direct Known Subclasses

Defined in:

runcobo/action.cr

Constant Summary

AFTER_FILTERS = [] of Crystal::Macros::MacroId
BEFORE_FILTERS = [] of Crystal::Macros::MacroId
LAYOUT = ""
ROUTES = [] of Runcobo::Route

Route table

SKIPPED_FILTERS = [] of Crystal::Macros::MacroId
TREE = ::Radix::Tree(self.class).new

Radix Tree for classes inheriated from BaseAction

Constructors

Macro Summary

Instance Method Summary

Instance methods inherited from module Runcobo::Validation

max_request_body_size : Int64 max_request_body_size

Instance methods inherited from module Runcobo::Filters

byebye byebye, continue continue

Macros inherited from module Runcobo::Filters

after(method) after, before(method) before, skip(method) skip

Instance methods inherited from module Runcobo::Render

render_body(body : String, *, status_code : Int32 = 200, content_type : String | Nil = nil) : HTTP::Server::Context render_body, render_empty(*, status_code : Int32 = 200, content_type : String | Nil = nil) : HTTP::Server::Context render_empty, render_file(path : String, *, status_code : Int32 = 200, content_type : String | Nil, filename : String | Nil = nil, disposition : String = "attachment") : HTTP::Server::Context render_file, render_json(value, *, status_code : Int32 = 200) : HTTP::Server::Context render_json, render_plain(text : String, *, status_code : Int32 = 200) : HTTP::Server::Context render_plain

Macros inherited from module Runcobo::Render

layout(filename) layout, render(*, layout = :inherit, status_code = 200, dir = nil, layout_dir = nil, engine = nil)
render(template, *, layout = :inherit, status_code = 200, dir = nil, layout_dir = nil, engine = nil)
render
, render_jbuilder(filename, *, layout = :inherit, status_code = 200, dir = nil, layout_dir = nil) render_jbuilder, render_to_string(*, layout = :inherit, dir = nil, layout_dir = nil, engine = nil)
render_to_string(template, *, layout = :inherit, dir = nil, layout_dir = nil, engine = nil)
render_to_string
, render_water(filename, *, layout = :inherit, status_code = 200, dir = nil, layout_dir = nil) render_water

Instance methods inherited from module Runcobo::Redirector

redirect(url : String, *, status_code : Int32 = 302) redirect

Constructor Detail

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

[View source]

Macro Detail

macro call(&body) #

[View source]

Instance Method Detail

abstract def call #

[View source]
def context : HTTP::Server::Context #

[View source]
def context=(context : HTTP::Server::Context) #

[View source]
def raw_body : String | Nil #

[View source]
def request : HTTP::Request #

[View source]
def request=(request : HTTP::Request) #

[View source]