instabug_http_client 2.2.0 instabug_http_client: ^2.2.0 copied to clipboard
This package is an add on to instabug_flutter. It intercepts any requests performed with http Package and sends them to the report that will be sent to the dashboard.
instabug_http_client #
A dart package to support Instabug network logging for the external dart http package.
Getting Started #
You can choose to attach all your network requests data to the Instabug reports being sent to the dashboard. See the details below on how to enable the feature for the http
package.
Installation #
- Add the dependency to your project
pubspec.yml
:
dependencies:
instabug_http_client:
- Install the package by running the following command.
flutter packages get
Usage #
To enable logging, use the custom http client provided by Instabug:
InstabugHttpClient client = InstabugHttpClient();
Then proceed to use the package normally:
client.get(URL).then((response) async {
});