fake_http 0.0.1+1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 54

fake_http #

A new Flutter package.

OkHttpClient #

还是原来的配方,还是熟悉的味道

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

[0.0.1] - TODO: Add release date.

  • TODO: Describe initial release.

Use this package as a library

1. Depend on it

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


dependencies:
  fake_http: ^0.0.1+1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:fake_http/fake_http.dart';
  
Version Uploaded Documentation Archive
0.0.1+1 Sep 30, 2018 Go to the documentation of fake_http 0.0.1+1 Download fake_http 0.0.1+1 archive
0.0.1 Sep 30, 2018 Go to the documentation of fake_http 0.0.1 Download fake_http 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
29
Health:
Code health derived from static analysis. [more]
92
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
60
Overall:
Weighted score of the above. [more]
54
Learn more about scoring.

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

  • Dart: 2.1.0
  • pana: 0.12.13
  • Flutter: 1.2.0

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-0.28 points)

519 out of 532 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/okhttp3/multipart_body.dart. (-2.48 points)

Analysis of lib/okhttp3/multipart_body.dart reported 5 hints:

line 11 col 26: Name non-constant identifiers using lowerCamelCase.

line 12 col 26: Name non-constant identifiers using lowerCamelCase.

line 13 col 26: Name non-constant identifiers using lowerCamelCase.

line 14 col 26: Name non-constant identifiers using lowerCamelCase.

line 15 col 26: Name non-constant identifiers using lowerCamelCase.

Fix lib/okhttp3/media_type.dart. (-1.99 points)

Analysis of lib/okhttp3/media_type.dart reported 4 hints:

line 4 col 26: Name non-constant identifiers using lowerCamelCase.

line 5 col 26: Name non-constant identifiers using lowerCamelCase.

line 6 col 26: Name non-constant identifiers using lowerCamelCase.

line 7 col 26: Name non-constant identifiers using lowerCamelCase.

Fix lib/okhttp3/cache_control.dart. (-1 points)

Analysis of lib/okhttp3/cache_control.dart reported 2 hints:

line 8 col 29: Name non-constant identifiers using lowerCamelCase.

line 10 col 29: Name non-constant identifiers using lowerCamelCase.

Fix additional 29 files with analysis or formatting issues. (-3 points)

Additional issues in the following files:

  • lib/okhttp3/internal/util.dart (2 hints)
  • lib/okhttp3/cache.dart (1 hint)
  • lib/okhttp3/internal/http/retry_and_follow_up_interceptor.dart (1 hint)
  • lib/okhttp3/tools/optimized_cache_interceptor.dart (1 hint)
  • lib/okhttp3/tools/persistent_cookie_jar.dart (1 hint)
  • lib/okhttp3/authenticator.dart (Run flutter format to format lib/okhttp3/authenticator.dart.)
  • lib/okhttp3/call.dart (Run flutter format to format lib/okhttp3/call.dart.)
  • lib/okhttp3/cookie_jar.dart (Run flutter format to format lib/okhttp3/cookie_jar.dart.)
  • lib/okhttp3/headers.dart (Run flutter format to format lib/okhttp3/headers.dart.)
  • lib/okhttp3/http_url.dart (Run flutter format to format lib/okhttp3/http_url.dart.)
  • lib/okhttp3/interceptor.dart (Run flutter format to format lib/okhttp3/interceptor.dart.)
  • lib/okhttp3/internal/cache/asset_bundle_cache.dart (Run flutter format to format lib/okhttp3/internal/cache/asset_bundle_cache.dart.)
  • lib/okhttp3/internal/cache/cache_interceptor.dart (Run flutter format to format lib/okhttp3/internal/cache/cache_interceptor.dart.)
  • lib/okhttp3/internal/cache/disk_cache.dart (Run flutter format to format lib/okhttp3/internal/cache/disk_cache.dart.)
  • lib/okhttp3/internal/encoding_util.dart (Run flutter format to format lib/okhttp3/internal/encoding_util.dart.)
  • lib/okhttp3/internal/http/bridge_interceptor.dart (Run flutter format to format lib/okhttp3/internal/http/bridge_interceptor.dart.)
  • lib/okhttp3/internal/http/call_server_interceptor.dart (Run flutter format to format lib/okhttp3/internal/http/call_server_interceptor.dart.)
  • lib/okhttp3/internal/http/http_method.dart (Run flutter format to format lib/okhttp3/internal/http/http_method.dart.)
  • lib/okhttp3/internal/http/real_response_body.dart (Run flutter format to format lib/okhttp3/internal/http/real_response_body.dart.)
  • lib/okhttp3/internal/http/unrepeatable_request_body.dart (Run flutter format to format lib/okhttp3/internal/http/unrepeatable_request_body.dart.)
  • lib/okhttp3/internal/http_extension.dart (Run flutter format to format lib/okhttp3/internal/http_extension.dart.)
  • lib/okhttp3/internal/version.dart (Run flutter format to format lib/okhttp3/internal/version.dart.)
  • lib/okhttp3/io/closeable.dart (Run flutter format to format lib/okhttp3/io/closeable.dart.)
  • lib/okhttp3/lang/character.dart (Run flutter format to format lib/okhttp3/lang/character.dart.)
  • lib/okhttp3/okhttp_client.dart (Run flutter format to format lib/okhttp3/okhttp_client.dart.)
  • lib/okhttp3/real_call.dart (Run flutter format to format lib/okhttp3/real_call.dart.)
  • lib/okhttp3/response_body.dart (Run flutter format to format lib/okhttp3/response_body.dart.)
  • lib/okhttp3/tools/progress_interceptor.dart (Run flutter format to format lib/okhttp3/tools/progress_interceptor.dart.)
  • lib/okhttp3/tools/progress_request_interceptor.dart (Run flutter format to format lib/okhttp3/tools/progress_request_interceptor.dart.)

Maintenance suggestions

The package description is too short. (-20 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.

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

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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
convert ^2.0.2 2.1.1
crypto ^2.0.6 2.0.6
flutter 0.0.0
path ^1.6.2 1.6.2
quiver ^2.0.0+1 2.0.1
Transitive dependencies
charcode 1.1.2
collection 1.14.11
matcher 0.12.4
meta 1.1.6 1.1.7
sky_engine 0.0.99
stack_trace 1.9.3
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test
intl ^0.15.7
test ^1.3.0