FetcherRequestHandler class
Serves the resources of a Publication
Fetcher
from a ServerBloc.
- Inheritance
-
- Object
- RequestHandler
- FetcherRequestHandler
Constructors
- FetcherRequestHandler(Publication publication)
- Creates an instance of FetcherRequestHandler for a publication.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- publication → Publication
-
The publication where to find the resource
final
- 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
paramname
and convert it to intinherited -
handle(
int requestId, HttpRequest request, String href) → Future< bool> -
This method should handle the requests if the implementation supports the
resource demanded.
override
-
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.
inherited
-
sendResource(
HttpRequest request, {required Resource resource, MediaType? mediaType}) → Future< void> -
Sends a byte stream (supporting range access) as the request response.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited