ApiHandler class abstract

Base class for API route handlers Handles HTTP methods for server-side API routes

Constructors

ApiHandler()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(ApiRequest request) Future<ApiResponse>
Handle DELETE requests
get(ApiRequest request) Future<ApiResponse>
Handle GET requests
handler(ApiRequest request) Future<ApiResponse>
Handle any method (catch-all)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(ApiRequest request) Future<ApiResponse>
Handle PATCH requests
post(ApiRequest request) Future<ApiResponse>
Handle POST requests
put(ApiRequest request) Future<ApiResponse>
Handle PUT requests
toString() String
A string representation of this object.
inherited

Operators

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