Interceptor class Null safety

Constructors

Interceptor(RequestMatcher _matcher)

Properties

body ↔ dynamic
read / write
content List<int>
read-only
exception Function?
read / write
hashCode int
The hash code for this object.
read-onlyinherited
isActive bool
read-only
isDone bool
read-only
isPersist bool
read-only
replyHeaders Map<String, String>?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
statusCode int
read / write

Methods

cancel() → void
headers(Map<String, dynamic> headers) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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}) → 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