Skip to content

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

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

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

:inherit:

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