NetworkEvent class

A single captured HTTP request/response (or error) exchange, or one socket message when socketEvent is set.

Constructors

NetworkEvent({required String id, required String method, required String url, required DateTime startedAt, Map<String, String> queryParameters = const {}, Map<String, String> requestHeaders = const {}, Object? requestBody, Set<String> hiddenHeaderKeys = const {}, String? socketEvent})

Properties

completedAt ↔ DateTime?
getter/setter pair
duration → Duration?
no setter
errorMessage ↔ String?
getter/setter pair
errorType ↔ String?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hiddenHeaderKeys → Set<String>
Lowercase header names (from CorextraDevToolsInterceptor.hiddenHeaders) the panel should mask on screen — the real values above are kept as-is so Copy still works.
final
id → String
final
isError → bool
no setter
isPending → bool
no setter
isSocket → bool
no setter
method → String
The HTTP method, or for a socket message its direction: EMIT (sent by the app) or ON (pushed by the server).
final
queryParameters → Map<String, String>
final
requestBody → Object?
final
requestHeaders → Map<String, String>
final
responseBody ↔ Object?
getter/setter pair
responseHeaders ↔ Map<String, String>
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
socketEvent → String?
The socket event name (e.g. message:new), or null for HTTP.
final
startedAt → DateTime
final
statusCode ↔ int?
getter/setter pair
statusMessage ↔ String?
getter/setter pair
url → String
The request URL, or for a socket message the socket server's URL.
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