Skip to content

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

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

@[ARTA::Get("/")]
def get_request_path(request : ART::Request) : String
  request.path
end

Included modules

Athena::Routing::Arguments::Resolvers::ArgumentValueResolverInterface

Class methods#

.new #

View source

Methods#

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

Returns a value resolved from the provided request and argument.

View source

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

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

View source