Skip to content

struct Athena::Framework::Controller::ValueResolvers::Request
inherits Struct #

Handles resolving a value for action parameters typed as ATH::Request.

@[ARTA::Get("/")]
def get_request_path(request : ATH::Request) : String
  request.path
end

Included modules

Athena::Framework::Controller::ValueResolvers::Interface

Constructors#

Methods#

#initialize#

View source

#resolve(request : ATH::Request, parameter : ATH::Controller::ParameterMetadata) : ATH::Request | Nil#

Returns a value resolved from the provided request and parameter if possible, otherwise returns nil if no parameter could be resolved.

View source