dio_proxy

Creator: coderz1093

Last updated:

0 purchases

dio_proxy Image
dio_proxy Images

Languages

Categories

Add to Cart

Description:

dio proxy

dio_proxy #
A new Flutter package project.
Getting Started #
Install #
dependencies:
dio_proxy: x.x.x #latest version
copied to clipboard
Usage #
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(ipAddr: 'localhost', port: 8888);

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

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

copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.