struct Athena::Framework::Controller::ValueResolvers::RequestAttribute
inherits Struct
#
Handles resolving a value that is stored in the request's ATH::Request#attributes
.
This includes any path/query parameters, custom values stored via an event listener, or extra defaults
stored within the routing annotation.
@[ARTA::Get("/{id}")]
def get_id(id : Int32) : Int32
id
end
Included modules
Athena::Framework::Controller::ValueResolvers::Interface
Constructors#
Methods#
#resolve(request : ATH::Request, parameter : ATH::Controller::ParameterMetadata)
#
Returns a value resolved from the provided request and parameter if possible, otherwise returns nil
if no parameter could be resolved.