HttpLog class
A class for logging HTTP requests and responses in real-time.
The HttpLog
class allows you to start a local server to view logs in a
web browser. It supports sending logs for GET, POST, and POST_FILE requests.
Constructors
- HttpLog()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Properties
Static Methods
-
clearLogs(
) → bool - Clears all stored logs.
-
sendLog(
{required String method, required String url, Map< String, String> ? header, Object? request, int? statusCode, int? duration, Object? response}) → void - Logs HTTP request and response details.
-
startServer(
BuildContext context, {bool isSandbox = true}) → void - Starts the HTTP logging server on the device.