StethoInspectorRequest class

Represents an HTTP request captured for inspection by Stetho.

Contains details about the request such as the URL, method, headers, body, and unique ID.

The optional friendlyNameExtra and friendlyName can be used to provide additional context or labeling when displayed in the inspector.

Constructors

StethoInspectorRequest.new({required String url, required String method, required String id, required Map<String, String> headers, required List<int> body, String friendlyName = 'Flutter Stetho', int? friendlyNameExtra})
Constructor for creating a new instance.

Properties

body List<int>
The request body as raw bytes.
final
friendlyName String
A human-readable name for the request; defaults to 'Flutter Stetho'.
final
friendlyNameExtra int?
Optional extra identifier or tag for friendly naming.
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
HTTP headers for the request.
final
id String
Unique identifier for correlating requests and responses.
final
method String
The HTTP method (GET, POST, PUT, DELETE, etc.).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
The full URL of the request.
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