chopper_generator 1.0.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 73

Chopper is an http client generator using source_gen and inspired by Retrofit.

Changelog

1.0.0

  • Multipart request
  • form url encoded
  • add jsonAPI and formUrlEncodedApi boolean to ChopperClient
  • json and formUrlEncoding are now builtin
  • onError, onResponse, onRequest stream
  • error converter
  • add withClient constructor

0.1.0

  • update dart sdk

0.0.2

  • the generated extension is now *.chopper.dart

  • rename ServiceDefinition to ChopperApi

  • rename ChopperClient.services field to ChopperClient.apis

0.0.1

  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

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


dependencies:
  chopper_generator: ^1.0.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:chopper_generator/chopper_generator.dart';
  
Version Uploaded Documentation Archive
1.0.0 Sep 29, 2018 Go to the documentation of chopper_generator 1.0.0 Download chopper_generator 1.0.0 archive
0.1.0 Aug 1, 2018 Go to the documentation of chopper_generator 0.1.0 Download chopper_generator 0.1.0 archive
0.0.2 Apr 8, 2018 Go to the documentation of chopper_generator 0.0.2 Download chopper_generator 0.0.2 archive
0.0.1 Apr 7, 2018 Go to the documentation of chopper_generator 0.0.1 Download chopper_generator 0.0.1 archive
1.0.0-dev2 Sep 16, 2018 Go to the documentation of chopper_generator 1.0.0-dev2 Download chopper_generator 1.0.0-dev2 archive
1.0.0-dev1 Sep 14, 2018 Go to the documentation of chopper_generator 1.0.0-dev1 Download chopper_generator 1.0.0-dev1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
49
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
73
Learn more about scoring.

We analyzed this package on Oct 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.4

Platforms

Detected platforms: other

Primary library: package:chopper_generator/chopper_generator.dart with components: io, isolate, build, mirrors.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use chopper_generator.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev <3.0.0
analyzer ^0.32.0 0.32.6 0.33.0
build ^0.12.0 0.12.8 1.0.1
chopper ^1.0.0 1.0.0
code_builder ^3.0.0 3.1.3
dart_style ^1.0.10 1.1.3 1.2.0
logging ^0.11.0 0.11.3+2
meta ^1.1.2 1.1.6
source_gen ^0.9.0 0.9.1+3
Transitive dependencies
args 1.5.0
async 2.0.8
built_collection 4.0.0
built_value 6.1.4
charcode 1.1.2
collection 1.14.11
convert 2.0.2
crypto 2.0.6
csslib 0.14.6
fixnum 0.10.8
front_end 0.1.4+2 0.1.6
glob 1.1.7
html 0.13.3+3
http 0.11.3+17 0.12.0
http_parser 3.1.3
kernel 0.3.4+2 0.3.6
matcher 0.12.4
package_config 1.0.5
path 1.6.2
plugin 0.2.0+3
quiver 2.0.0+1
source_span 1.4.1
stack_trace 1.9.3
string_scanner 1.0.4
typed_data 1.1.6
utf 0.9.0+5
watcher 0.9.7+10
yaml 2.1.15
Dev dependencies
test ^1.3.0