http_proxy 1.2.1 copy "http_proxy: ^1.2.1" to clipboard
http_proxy: ^1.2.1 copied to clipboard

PlatformAndroidiOS
outdated

http proxy plugin,get and set http proxy automatically.This package help you to use proxy tools.

http_proxy #

http_proxy get the proxy settings of mobile device automatically,and set up proxy for http.

Getting Started #

You should initialize before runapp().

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  HttpProxy httpProxy = await HttpProxy.createHttpProxy();
  HttpOverrides.global=httpProxy;
  runApp(MyApp());
}

That's all done.You can use Charles or other proxy tools now.

⚠️ Plugin ignores all CA checks because http library does't use platform CA store.The suggestion that the plugin is available only in dev environment is security for https requests.

32
likes
130
pub points
95%
popularity

Publisher

unverified uploader

http proxy plugin,get and set http proxy automatically.This package help you to use proxy tools.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on http_proxy