StethoInspectorResponse class

Represents an HTTP response captured for inspection by Stetho.

Contains details about the response such as URL, status code, headers, connection information, and the corresponding request ID.

Constructors

StethoInspectorResponse.new({required String url, required bool connectionReused, required int connectionId, required String requestId, required int statusCode, required String reasonPhrase, required Map<String, String> headers, bool fromDiskCache = false})
Constructs a new instance with all required fields.

Properties

connectionId int
An identifier for the connection used.
final
connectionReused bool
Indicates if the connection was reused for this response.
final
fromDiskCache bool
Indicates if the response was served from disk cache.
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
HTTP headers included in the response.
final
reasonPhrase String
The reason phrase associated with the status code (e.g., "OK").
final
requestId String
The unique ID of the request corresponding to this response.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The HTTP status code (e.g., 200, 404).
final
url String
The URL associated with this response.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this instance to a Map for serialization over platform channels.
toString() String
A string representation of this object.
inherited

Operators

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