HttpFake class final

Stubs and the requests sent while faking (Http.fake()).

Properties

hashCode → int
The hash code for this object.
no setterinherited
recorded → List<ClientRequest>
Every request the fake answered, in order.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

assertNothingSent() → void
Fails if any request was sent.
assertNotSent(bool test(ClientRequest request)) → void
Fails if a request matching test was sent.
assertSent(bool test(ClientRequest request)) → void
Fails unless a request matching test was sent.
assertSentCount(int count) → void
Fails unless exactly count requests were sent.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sent([bool test(ClientRequest)?]) → Iterable<ClientRequest>
Requests matching test.
toString() → String
A string representation of this object.
inherited

Operators

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