Interceptor class
Constructors
- Interceptor.new(RequestMatcher _matcher)
Properties
- body ↔ dynamic
-
getter/setter pair
-
content
→ List<
int> -
no setter
- exception ↔ Function?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isActive → bool
-
no setter
- isDone → bool
-
no setter
- isPersist → bool
-
no setter
-
replyHeaders
↔ Map<
String, String> ? -
getter/setter pair
- responseDelay ↔ Duration
-
Simulates delay before response is produced. Useful for testing timeouts.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode ↔ int
-
getter/setter pair
Methods
-
cancel(
) → void -
headers(
Map< String, dynamic> headers) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onReply(
void callback()) → void -
persist(
[bool enabled = true]) → void -
query(
dynamic query) → void -
replay(
int statusCode, dynamic body, {Map< String, String> ? headers}) → void - Type problems. Will be removed in next versions. Use reply method.
-
reply(
int statusCode, dynamic body, {Map< String, String> ? headers, Duration responseDelay = Duration.zero}) → void -
throwCertificateError(
) → void -
throwHandshakeError(
) → void -
throwing(
ExceptionThrower thrower) → void -
throwNetworkError(
) → void -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited