chopper 1.2.0-dev3
chopper: ^1.2.0-dev3 copied to clipboard
Chopper is an http client generator using source_gen and inspired from retrofit
Changelog #
1.2.0 #
-
Request is now containing baseUrl
-
Can call
Request.toHttpRequest()direclty to get thehttp.BaseRequestwill receive -
If a full url is specified in the
path(ex: @Get(path: 'https://...')), it won't be concaten with the baseUrl of the ChopperClient and the ChopperAPI -
Add
CurlInterceptorthanks @edwardaux -
Add
HttpLoggingInterceptor -
BreakingChange
- remove
formUrlEncodedAPI, this is the default behavior of http package and ifjsonApiis false - Method.url renamed to url
- remove
1.1.0 #
-
BreakingChange Removed
nameparameter onChopperApiNew way to instanciate a service@ChopperApi() abstract class MyService extends ChopperService { static MyService create([ChopperClient client]) => _$MyService(client); }
1.0.0 #
- Multipart request
- form url encoded
- add jsonAPI and formUrlEncodedApi boolean to ChopperClient
- json and formUrlEncoding are now builtin
onError,onResponse,onRequeststream- error converter
- add withClient constructor
0.1.1 #
- Remove trimSlashes
0.1.0 #
- update dart sdk
0.0.2 #
-
the generated extension is now
*.chopper.dart -
rename
ServiceDefinitiontoChopperApi -
rename
ChopperClient.servicesfield toChopperClient.apis
0.0.1 #
- Initial version, created by Stagehand



