0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.