FakeHttpTransport class

Executes a handler in memory. Does not simulate real network abortion.

Implemented types

Constructors

FakeHttpTransport(HttpRequestHandler _handler)

Properties

hashCode → int
The hash code for this object.
no setterinherited
isClosed → bool
no setter
requests → List<HttpRequest>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
Stops accepting requests and releases transport resources.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(HttpRequest request, CancellationToken cancellationToken) → Future<HttpResponse>
override
toString() → String
A string representation of this object.
inherited

Operators

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