instabug_http_client 1.0.0

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 #

  1. Add the dependency to your project pubspec.yml:
  1. 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 {


[1.0.0] - 29/7/2019.

  • Adds implementation for the instabug_http_client library which supports Instabug network logging for the dart library: http.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  instabug_http_client: ^1.0.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:instabug_http_client/instabug_http_client.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Health suggestions

Format lib/instabug_http_client.dart.

Run flutter format to format lib/instabug_http_client.dart.

Format lib/instabug_http_logger.dart.

Run flutter format to format lib/instabug_http_logger.dart.

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (instabug_flutter).

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and instabug_http_client.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
http ^0.12.0+2 0.12.0+4
instabug_flutter ^1.0.0 1.0.0 9.0.6
meta ^1.1.6 1.1.8
Transitive dependencies
async 2.4.0
charcode 1.1.3
collection 1.14.11 1.14.12
http_parser 3.1.3
path 1.6.4
pedantic 1.9.0
sky_engine 0.0.99
source_span 1.6.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
mockito any