HTTPRequestData class

Represents the data structure for an HTTP request.

This class contains details of an HTTP request, including headers, URI, HTTP method, request data, and a unique request ID.

Constructors

HTTPRequestData({required Map<String, dynamic> headers, required Uri uri, required String method, required dynamic data, required int requestId})

Properties

createdAt → DateTime
final
data → dynamic
final
hasBody → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, dynamic>
final
method → String
final
prettyData → String
no setter
requestId → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uri → Uri
final

Methods

copyWith({Map<String, dynamic>? headers, Uri? uri, String? method, dynamic data, int? requestId}) → HTTPRequestData
Creates a copy of this HTTPRequestData with the given parameters, allowing for modification of certain fields while keeping others from the original object.
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