HttpRequestData class

Mutable request data passed through the HTTP interceptor chain.

Interceptors may mutate url and headers in-place, or replace them entirely before calling HttpRequestHandler.next. Once next is called, further mutations to this object have no effect on subsequent interceptors — the chain runner passes the value at the time next was called.

Constructors

HttpRequestData({required String url, required Map<String, String> headers})

Properties

hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
getter/setter pair

Methods

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