HttpHandler class

Constructors

HttpHandler.any(String path, ResponseResolver resolver)
factory to create a handler for any request.
factory
HttpHandler.delete(String path, ResponseResolver resolver)
factory to create a handler for DELETE requests.
factory
HttpHandler.get(String path, ResponseResolver resolver)
factory to create a handler for GET requests.
factory
HttpHandler.head(String path, ResponseResolver resolver)
factory to create a handler for HEAD requests.
factory
HttpHandler.options(String path, ResponseResolver resolver)
factory to create a handler for OPTIONS requests.
factory
HttpHandler.patch(String path, ResponseResolver resolver)
factory to create a handler for PATCH requests.
factory
HttpHandler.post(String path, ResponseResolver resolver)
factory to create a handler for POST requests.
factory
HttpHandler.put(String path, ResponseResolver resolver)
factory to create a handler for PUT requests.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usedCount int
Count of how many times the handler has been used.
no setter

Methods

handle(Request request) Future<Response>
Handle the request and return a response.
log(Request request, Response response) Future<void>
Log the request and response for debugging purposes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Reset the handler to its initial state.
test(Request request) bool
check if the request should be handled by this handler
toString() String
A string representation of this object.
inherited

Operators

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