ShelfTestServer class
A shorthand for creating an HTTP server serving a ShelfTestHandler.
This is constructed using create, and expectations may be registered through handler.
Properties
- handler → ShelfTestHandler
-
The handler on which expectations can be registered.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → Uri
-
The URL of this server.
no setter
Methods
-
close(
{bool force = false}) → Future< void> - Closes the server.
-
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
Static Methods
-
create(
{bool log = true, String? description}) → Future< ShelfTestServer> - Creates a server serving a ShelfTestHandler.