ShelfTestHandler class

A Handler that handles requests as specified by expect and expectAnything.

Constructors

ShelfTestHandler({bool log = true, String? description})
Creates a new handler that handles requests using handlers provided by expect and expectAnything.

Properties

description String
The description used in debugging output for this handler.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Request request) FutureOr<Response>
The implementation of Handler.
expect(String method, String path, Handler handler) → void
Expects that a single HTTP request with the given method and path will be made to this.
expectAnything(Handler handler) → void
Expects that a single HTTP request will be made to this.
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