APIRouteHandlerFunction<T> class

APIRouteHandler implementation that calls function.

Inheritance

Constructors

APIRouteHandlerFunction(APIModule module, APIRequestMethod? requestMethod, String routeName, APIRouteFunction<T> function, Map<String, TypeInfo>? parameters, Iterable<APIRouteRule>? rules, APIRouteConfig? config)

Properties

config APIRouteConfig
getter/setter pairinherited
entityAccessRules EntityAccessRules
Returns the EntityAccessRules defined by APIEntityAccessRules annotations.
no setterinherited
entityResolutionRules EntityResolutionRules
Returns the EntityResolutionRules defined by APIEntityResolutionRules annotations.
no setterinherited
function APIRouteFunction<T>
final
hashCode int
The hash code for this object.
no setterinherited
module APIModule
finalinherited
parameters Map<String, TypeInfo>?
getter/setter pairinherited
requestMethod APIRequestMethod?
finalinherited
routeName String
finalinherited
rules List<APIRouteRule>
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apiInfo([APIRequest? apiRequest]) APIRouteInfo
inherited
call(APIRequest request) FutureOr<APIResponse<T>>
Calls this route.
inherited
callImpl(APIRequest request) FutureOr<APIResponse<T>>
override
callResponse(APIResponse<T> response, DateTime initTime) APIResponse<T>
inherited
checkRules(APIRequest request) bool
Check the rules of this route.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited