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.

34
likes
30
points
16.3k
downloads

Publisher

unverified uploader

Weekly Downloads

http proxy plugin.

Repository (GitHub)

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on http_proxy