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

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 {
  if (kReleaseMode) {
    runApp(MyApp());
  } else {
    WidgetsFlutterBinding.ensureInitialized();
    HttpProxy httpProxy = await HttpProxy.createHttpProxy();

    proxyHost = httpProxy.host;
    proxyPort = httpProxy.port;

    HttpOverrides.runWithHttpOverrides(() => runApp(MyApp()), httpProxy);
  }
}

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

27
likes
0
pub points
94%
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

License

unknown (LICENSE)

Dependencies

flutter, http

More

Packages that depend on http_proxy