Top Level Namespace
Defined in:
Constant Summary
-
HTTP_METHODS_OPTIONS =
["get", "post", "put", "patch", "delete", "options"] of ::String
Method Summary
- all(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> HTTP::Server::Context | String | Int32 | Int64 | Bool | Nil)
- all(path, &block : HTTP::Server::Context -> HTTP::Server::Context | String | Int32 | Int64 | Bool | Nil)
- all(path, middlewares : Array(Raze::Handler))
- all(path, *middlewares)
- all(path, *middlewares, &block : HTTP::Server::Context -> HTTP::Server::Context | String | Int32 | Int64 | Bool | Nil)
- delete(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes)
- delete(path, &block : HTTP::Server::Context -> ContextTypes)
- delete(path, middlewares : Array(Raze::Handler))
- delete(path, *middlewares)
- delete(path, *middlewares, &block : HTTP::Server::Context -> ContextTypes)
- error(status_code, &block : HTTP::Server::Context, Exception -> _)
- get(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes)
- get(path, &block : HTTP::Server::Context -> ContextTypes)
- get(path, middlewares : Array(Raze::Handler))
- get(path, *middlewares)
- get(path, *middlewares, &block : HTTP::Server::Context -> ContextTypes)
- options(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes)
- options(path, &block : HTTP::Server::Context -> ContextTypes)
- options(path, middlewares : Array(Raze::Handler))
- options(path, *middlewares)
- options(path, *middlewares, &block : HTTP::Server::Context -> ContextTypes)
- patch(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes)
- patch(path, &block : HTTP::Server::Context -> ContextTypes)
- patch(path, middlewares : Array(Raze::Handler))
- patch(path, *middlewares)
- patch(path, *middlewares, &block : HTTP::Server::Context -> ContextTypes)
- post(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes)
- post(path, &block : HTTP::Server::Context -> ContextTypes)
- post(path, middlewares : Array(Raze::Handler))
- post(path, *middlewares)
- post(path, *middlewares, &block : HTTP::Server::Context -> ContextTypes)
- put(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes)
- put(path, &block : HTTP::Server::Context -> ContextTypes)
- put(path, middlewares : Array(Raze::Handler))
- put(path, *middlewares)
- put(path, *middlewares, &block : HTTP::Server::Context -> ContextTypes)
- ws(path, middlewares : Array(Raze::WebSocketHandler), &block : HTTP::WebSocket, HTTP::Server::Context -> Void)
- ws(path, &block : HTTP::WebSocket, HTTP::Server::Context -> Void)
- ws(path, middlewares : Array(Raze::WebSocketHandler))
- ws(path, *middlewares)
- ws(path, *middlewares, &block : HTTP::WebSocket, HTTP::Server::Context -> Void)
Macro Summary
-
add_context_storage_type(type)
Extends context storage with user defined types.
- render(filename)
Method Detail
def all(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> HTTP::Server::Context | String | Int32 | Int64 | Bool | Nil)
#
def all(path, &block : HTTP::Server::Context -> HTTP::Server::Context | String | Int32 | Int64 | Bool | Nil)
#
def all(path, *middlewares, &block : HTTP::Server::Context -> HTTP::Server::Context | String | Int32 | Int64 | Bool | Nil)
#
def delete(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes)
#
def options(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes)
#
def patch(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes)
#
def post(path, middlewares : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes)
#
def ws(path, middlewares : Array(Raze::WebSocketHandler), &block : HTTP::WebSocket, HTTP::Server::Context -> Void)
#
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)