Skip to content

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

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

@[ATHA::Get("/")]
def get_request_path(request : ATH::Request) : String
  request.path
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