Skip to content

struct Athena::Framework::Arguments::Resolvers::RequestAttribute
inherits Struct #

Handles resolving a value that is stored in the request's ATH::Request#attributes. This includes any path/query parameters, or custom types values stored via an AED::EventListenerInterface.

@[ATHA::Get("/:id")]
def get_id(id : Int32) : Int32
  id
end

Included modules

Athena::Framework::Arguments::Resolvers::ArgumentValueResolverInterface

Constructors#

.new #

View source

Methods#

#initialize #

View source

#resolve(request : ATH::Request, argument : ATH::Arguments::ArgumentMetadata) #

Returns a value resolved from the provided request and argument.

View source

#supports?(request : ATH::Request, argument : ATH::Arguments::ArgumentMetadata) : Bool #

Returns true if self is able to resolve a value from the provided request and argument.

View source