chopper_generator 1.1.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 71

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

Changelog

1.1.0

  • BreakingChange Removed name parameter on ChopperApi New way to instanciate a service dart @ChopperApi() abstract class MyService extends ChopperService { static MyService create([ChopperClient client]) => _$MyService(client); }

1.0.1

  • update build package

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.1.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.1.0 Dec 9, 2018 Go to the documentation of chopper_generator 1.1.0 Download chopper_generator 1.1.0 archive
1.0.1 Nov 29, 2018 Go to the documentation of chopper_generator 1.0.1 Download chopper_generator 1.0.1 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]
52
Health:
Code health derived from static analysis. [more]
90
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
71
Learn more about scoring.

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

  • Dart: 2.1.0
  • pana: 0.12.7

Platforms

Detected platforms: other

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

Health issues and suggestions

Document public APIs (-10 points)

2 out of 2 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.

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.33.0 0.33.6 0.34.0
build ^1.0.0 1.0.2
chopper ^1.1.0 1.1.0
code_builder ^3.0.0 3.1.3
dart_style ^1.0.10 1.2.0 1.2.2
logging ^0.11.0 0.11.3+2
meta ^1.1.2 1.1.6
source_gen ^0.9.0 0.9.2
Transitive dependencies
args 1.5.1
async 2.0.8
built_collection 4.1.0
built_value 6.1.6
charcode 1.1.2
collection 1.14.11
convert 2.0.2
crypto 2.0.6
csslib 0.14.6
fixnum 0.10.9
front_end 0.1.6+8 0.1.7
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.6+8 0.3.7
matcher 0.12.4
package_config 1.0.5
path 1.6.2
plugin 0.2.0+3
pub_semver 1.4.2
quiver 2.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