class Radbas::ApplicationBuilder
- Radbas::ApplicationBuilder
- Radbas::RouteCollector
- Reference
- Object
Defined in:
radbas-framework/application_builder.crConstructors
Instance Method Summary
- #add_error_handler_middleware(error_handler : ErrorHandlerLike = CommonErrorHandler.new(@logger)) : ErrorHandlerMiddleware
- #add_request_logger_middleware(logger : Log = @logger) : RequestLoggerMiddleware
- #add_routing_middleware : RoutingMiddleware
- #build : Application
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) : selfadd(middleware : MiddlewareLike) : self add
Constructor Detail
Instance Method Detail
def add_error_handler_middleware(error_handler : ErrorHandlerLike = CommonErrorHandler.new(@logger)) : ErrorHandlerMiddleware
#