RequestHandler class abstract

The RequestHandler provides the means to send data to the HTTP response.

It also support range requests

Implementers

Constructors

RequestHandler()

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

getParamAsInt(HttpRequest request, String name, {int defaultValue = 0}) int
Extract a request param name and convert it to int
handle(int requestId, HttpRequest request, String href) Future<bool>
This method should handle the requests if the implementation supports the resource demanded.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendData(HttpRequest request, {required List<int> data, MediaType? mediaType}) Future<void>
Sends a bytes buffer as the request response.
sendResource(HttpRequest request, {required Resource resource, MediaType? mediaType}) Future<void>
Sends a byte stream (supporting range access) as the request response.
toString() String
A string representation of this object.
inherited

Operators

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