Top Level Namespace

Defined in:

Constant Summary

HTTP_METHODS_OPTIONS = ["get", "post", "put", "patch", "delete", "options"] of ::String

Method Summary

Macro Summary

Method Detail

def all(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> HTTP::Server::Context | String | Int32 | Int64 | Bool | Nil) #

[View source]
def all(path, &block : HTTP::Server::Context -> HTTP::Server::Context | String | Int32 | Int64 | Bool | Nil) #

[View source]
def all(path, middlewares : Array(Raze::Handler)) #

[View source]
def all(path, *middlewares) #

[View source]
def all(path, *middlewares, &block : HTTP::Server::Context -> HTTP::Server::Context | String | Int32 | Int64 | Bool | Nil) #

[View source]
def delete(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def delete(path, &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def delete(path, middlewares : Array(Raze::Handler)) #

[View source]
def delete(path, *middlewares) #

[View source]
def delete(path, *middlewares, &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def error(status_code, &block : HTTP::Server::Context, Exception -> _) #

[View source]
def get(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def get(path, &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def get(path, middlewares : Array(Raze::Handler)) #

[View source]
def get(path, *middlewares) #

[View source]
def get(path, *middlewares, &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def options(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def options(path, &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def options(path, middlewares : Array(Raze::Handler)) #

[View source]
def options(path, *middlewares) #

[View source]
def options(path, *middlewares, &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def patch(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def patch(path, &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def patch(path, middlewares : Array(Raze::Handler)) #

[View source]
def patch(path, *middlewares) #

[View source]
def patch(path, *middlewares, &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def post(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def post(path, &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def post(path, middlewares : Array(Raze::Handler)) #

[View source]
def post(path, *middlewares) #

[View source]
def post(path, *middlewares, &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def put(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def put(path, &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def put(path, middlewares : Array(Raze::Handler)) #

[View source]
def put(path, *middlewares) #

[View source]
def put(path, *middlewares, &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def ws(path, middlewares : Array(Raze::WebSocketHandler), &block : HTTP::WebSocket, HTTP::Server::Context -> Void) #

[View source]
def ws(path, &block : HTTP::WebSocket, HTTP::Server::Context -> Void) #

[View source]
def ws(path, middlewares : Array(Raze::WebSocketHandler)) #

[View source]
def ws(path, *middlewares) #

[View source]
def ws(path, *middlewares, &block : HTTP::WebSocket, HTTP::Server::Context -> Void) #

[View source]

Macro Detail

macro add_context_storage_type(type) #

Extends context storage with user defined types.

class User property name end

add_context_storage_type(User)


[View source]
macro render(filename) #

[View source]