dio_brotli_transformer 2.0.0 dio_brotli_transformer: ^2.0.0 copied to clipboard
Brotli support for Dio http client
import 'package:dio/dio.dart';
import 'package:dio_brotli_transformer/dio_brotli_transformer.dart';
Future<void> main() async {
final dio = Dio(
BaseOptions(
headers: {
'accept-encoding': 'br',
},
),
);
dio.transformer = DioBrotliTransformer();
final response = await dio.get('https://httpbin.org/brotli');
print(response.data);
}