Capture HTTP request and response logs with the Gleap Flutter SDK. Attach network context to in-app bug reports so your team can investigate customer issues.
Network logging documentation · Gleap
Checkout our documentation for full reference. Include the following dependency in your pubspec.yaml:
dependencies:
gleap_http_interceptor: "^1.2.4"Flutter v2 Support
If you are using Flutter < v3, please import the gleap_sdk as shown below:
dependencies:
gleap_dio_interceptor:
git:
url: https://github.com/GleapSDK/gleap_http_interceptor.git
ref: flutter-v2
Client client = InterceptedClient.build(interceptors: [
GleapHttpInterceptor(),
]);
client.get(Uri.parse("https://example.com"));