HttpFailureRequestModel class final
Stores HTTP request information related to a failure.
This model is used to preserve request context when an HTTP-related operation fails. It can be attached to a failure object or used directly when creating diagnostic logs.
The model contains the request method, target URI, optional headers, and optional request body.
Constructors
Properties
- body → Object?
-
Optional HTTP request body.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, Object?> ? -
Optional HTTP request headers.
final
- method → String
-
The HTTP method used for the request.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri
-
The target URI of the HTTP request.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toLogString(
) → String - Converts the stored HTTP request information into a readable log string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited