class Artanis::Application

Included Modules

Defined in:

application.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Artanis::Render

json(contents) json

Macros inherited from module Artanis::Render

ecr(name, layout = "layout") ecr, render(name, engine, layout = "layout") render, views_path(path) views_path

Instance methods inherited from module Artanis::DSL

call : Artanis::Response call

Macros inherited from module Artanis::DSL

after(path = "*", &block) after, before(path = "*", &block) before, call_action(method_name) call_action, call_method(method) call_method, delete(path, &block) delete, gen_match(type, method, path, &block) gen_match, get(path, &block) get, halt(code_or_message = 200)
halt(code, message)
halt
, head(path, &block) head, match(method, path, &block) match, options(path, &block) options, pass pass, patch(path, &block) patch, post(path, &block) post, put(path, &block) put

Constructor Detail

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

[View source]

Class Method Detail

def self.call(context) #

[View source]

Instance Method Detail

def body(str) #

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

[View source]
def headers(hsh) #

[View source]
def not_found(&) #

[View source]
def params #

[View source]
def redirect(uri) #

[View source]
def request #

[View source]
def response #

[View source]
def status(code) #

[View source]