http_manager 0.0.12

A library for Dart developers.

Created from templates made available by Stagehand under a BSD-style license.

Usage #

A simple usage example:

import 'package:http_manager/http_manager.dart';

main() {
  var awesome = new Awesome();

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0.0.1 #

  • Initial version

0.0.2 #

  • Exported missing files

0.0.3 #

  • Added support for custom response type

0.0.5 #

  • Added support for async should catch

0.0.6 #

  • Added http adapter filter option

0.0.7 #

  • Added custom request factory support

0.0.9 #

  • Added before send event

Use this package as a library

1. Depend on it

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

  http_manager: ^0.0.12

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or 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:http_manager/http_manager.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

Health issues and suggestions

Document public APIs. (-0.48 points)

56 out of 57 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/http_manager.dart. (-0.50 points)

Analysis of lib/src/http_manager.dart reported 1 hint:

line 47 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

Format lib/http_manager.dart.

Run dartfmt to format lib/http_manager.dart.

Format lib/src/adapters/base_adapters/persistent_connection_adapter.dart.

Run dartfmt to format lib/src/adapters/base_adapters/persistent_connection_adapter.dart.

Fix additional 9 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/adapters/http_adapter/http_adapter.dart (Run dartfmt to format lib/src/adapters/http_adapter/http_adapter.dart.)
  • lib/src/dto/i_request.dart (Run dartfmt to format lib/src/dto/i_request.dart.)
  • lib/src/dto/request.dart (Run dartfmt to format lib/src/dto/request.dart.)
  • lib/src/factories/default_factory.dart (Run dartfmt to format lib/src/factories/default_factory.dart.)
  • lib/src/factories/i_request_factory.dart (Run dartfmt to format lib/src/factories/i_request_factory.dart.)
  • lib/src/handlers/retry_exception_handler.dart (Run dartfmt to format lib/src/handlers/retry_exception_handler.dart.)
  • lib/src/interfaces/i_before_send.dart (Run dartfmt to format lib/src/interfaces/i_before_send.dart.)
  • lib/src/interfaces/i_exception_handler.dart (Run dartfmt to format lib/src/interfaces/i_exception_handler.dart.)
  • lib/src/interfaces/i_http_adapter.dart (Run dartfmt to format lib/src/interfaces/i_http_adapter.dart.)

Maintenance suggestions

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 http_manager.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

The package description is too short. (-8 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Homepage URL is insecure. (-5 points)

Update the homepage field and use a secure (https) URL.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.5.0 <3.0.0
http ^0.12.0+2 0.12.0+4
Transitive dependencies
async 2.4.0
charcode 1.1.3
collection 1.14.12
http_parser 3.1.3
meta 1.1.8
path 1.6.4
source_span 1.6.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
pedantic ^1.8.0 1.9.0
test ^1.6.0