HttpExchange class final
One request and its response, as sent: after the auth layer and the host override. Values are not redacted; only devtools receives this, and it redacts before storing anything.
Constructors
-
HttpExchange({required Dio dio, required String method, required String url, required String requestedUrl, required Map<
String, List< requestHeaders, required List<String> >int> ? requestBody, required bool requestBodyStreamed, required int? status, required Map<String, List< responseHeaders, required List<String> >int> ? responseBody, required DateTime startedAt, required Duration duration, required Object? error, required Set<String> defaultHeaderNames, required Map<String, dynamic> extra}) -
An exchange.
const
Properties
-
defaultHeaderNames
→ Set<
String> -
The names of the client's default headers when it was sent: devtools
redacts them.
final
- dio → Dio
-
The client that sent it, to replay through.
final
- duration → Duration
-
How long the exchange took.
final
- error → Object?
-
The failure, if the exchange failed.
final
-
extra
→ Map<
String, dynamic> -
The request's
extra, where devtools marks its own replays.final - hashCode → int
-
The hash code for this object.
no setterinherited
- method → String
-
The request method, upper case.
final
-
requestBody
→ List<
int> ? -
The request body, or
nullwhen there was none or it was streamed.final - requestBodyStreamed → bool
-
Whether the request body was streamed or multipart, so it couldn't be
read or sent again.
final
- requestedUrl → String
-
The URL the caller asked for, before a host override: what a replay
asks for again.
final
-
requestHeaders
→ Map<
String, List< String> > -
The request headers, with its content type.
final
-
responseBody
→ List<
int> ? -
The response body, or
nullwhen there was none or it was streamed.final -
responseHeaders
→ Map<
String, List< String> > -
The response headers.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startedAt → DateTime
-
When the request started.
final
- status → int?
-
The response status, or
nullwhen the request failed before one.final - url → String
-
The URL as sent, after a host override.
final
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