NetworkRequest class

Network request/response data model

Constructors

NetworkRequest({required String id, required String method, required String url, required Map<String, String> headers, dynamic body, required DateTime timestamp, NetworkResponse? response, bool isWebSocket = false})

Properties

body → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
final
id String
final
isWebSocket bool
final
method String
final
response NetworkResponse?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
final
url String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCurl() String
Generate curl command for this request
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited