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

outdated

http proxy plugin.

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.

32
likes
30
pub points
95%
popularity

Publisher

unverified uploader

http proxy plugin.

Repository (GitHub)

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on http_proxy