module ActionController::Route::Builder

Direct including types

Defined in:

action-controller/router/builder.cr

Constant Summary

DEFAULT_PARSER = ["application/json"]
DEFAULT_RESPONDER = ["application/json"]
OPENAPI_ERRORS = {} of Nil => Nil
OPENAPI_FILTERS = {} of Nil => Nil

OpenAPI tracking

OPENAPI_ROUTES = {} of Nil => Nil
PARSERS = {"application/json" => do |klass, body_io, request| request_charset = ActionController::Support.charset(request.headers) if request_charset.in?({"utf-8", "us-ascii"}) else body_io.set_encoding(request_charset) end klass.from_json(body_io) end} of Nil => Nil
RESPONDERS = {"application/json" => do |io, result| result.to_json(io) end} of Nil => Nil
ROUTE_FUNCTIONS = {} of Nil => Nil

Routing related

Macro Summary

Macro Detail

macro __build_transformer_functions__ #

[View source]
macro __parse_inferred_routes__ #

[View source]
macro add_parser(content_type, &block) #

[View source]
macro add_responder(content_type, &block) #

[View source]
macro default_parser(content_type) #

[View source]
macro default_responder(content_type) #

[View source]