class Radbas::ApplicationBuilder

Defined in:

radbas-framework/application_builder.cr

Constructors

Instance Method Summary

Instance methods inherited from class Radbas::RouteCollector

delete(path : String, action : ActionLike, name : Symbol | Nil = nil) : self delete, get(path : String, action : ActionLike, name : Symbol | Nil = nil) : self get, group(path : String = "", &) : self group, map(method : String, path : String, action : ActionLike, name : Symbol | Nil) : self map, options(path : String, action : ActionLike, name : Symbol | Nil = nil) : self options, patch(path : String, action : ActionLike, name : Symbol | Nil = nil) : self patch, post(path : String, action : ActionLike, name : Symbol | Nil = nil) : self post, put(path : String, action : ActionLike, name : Symbol | Nil = nil) : self put, sse(path : String, handler : StreamHandlerLike, name : Symbol | Nil = nil) : self sse, ws(path : String, handler : SocketHandlerLike, name : Symbol | Nil = nil) : self ws

Constructor methods inherited from class Radbas::RouteCollector

new(router : Routing::Router(Action), middleware : Array(MiddlewareLike), route_path : String | Nil) new

Instance methods inherited from module Radbas::MiddlewareCollector

add(http_handler : HTTP::Handler) : self
add(middleware : MiddlewareLike) : self
add

Constructor Detail

def self.new(logger : Log = Log.for("radbas.app"), router = Routing::Router(Action).new) #

[View source]

Instance Method Detail

def add_error_handler_middleware(error_handler : ErrorHandlerLike = CommonErrorHandler.new(@logger)) : ErrorHandlerMiddleware #

[View source]
def add_request_logger_middleware(logger : Log = @logger) : RequestLoggerMiddleware #

[View source]
def add_routing_middleware : RoutingMiddleware #

[View source]
def build : Application #

[View source]