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, custom types values stored via an AED::EventListenerInterface, or extra defaults stored within the routing annotation.

@[ARTA::Get("/{id}")]
def get_id(id : Int32) : Int32
  id
end

Included modules

Athena::Framework::Arguments::Resolvers::Interface

Constructors#

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