dio_proxy 1.0.10 copy "dio_proxy: ^1.0.10" to clipboard
dio_proxy: ^1.0.10 copied to clipboard

a proxy for Dio . dio_proxy interceptor can help us debug network traffic .

example/README.md

import 'package:dio/dio.dart';
import 'package:dio_proxy/dio_proxy.dart';

void main() async{

    Dio dio = Dio()
      ..options.baseUrl = "https://httpbin.org/"
      ..httpClientAdapter = HttpProxyAdapter();

    Response<String> response = await dio.get('/get?a=2');
    print(response.data);

    response = await dio.post('/post', data: {"a": 2});
    print(response.data);


}

3
likes
30
pub points
36%
popularity

Publisher

verified publishercsdn.net

a proxy for Dio . dio_proxy interceptor can help us debug network traffic .

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

dio

More

Packages that depend on dio_proxy