FAQ
*.chopper.dart not found ?
How to set a connection timeout?
import 'package:http/io_client.dart' as http;
import 'dart:io';
final chopper = ChopperClient(
client: http.IOClient(
HttpClient()..connectionTimeout = const Duration(seconds: 60),
),
);How to set a timeout?
Rules & behavior
Add query parameter to all requests
GZip converter example
Runtime baseUrl change
Mock ChopperClient for testing
Use HTTPS certificate
Authorized HTTP requests
Authorized HTTP requests using the special Authenticator interceptor
Decoding JSON using Isolates
Install the dependencies
Write a JSON decode service
Write a custom JsonConverter
Code generation
Configure a WorkerPool and run the example
Further reading
How to use Chopper with Injectable
Create a module for your ChopperClient
Create ChopperService with Injectable
Last updated