Skip to content
pubscout

http_proxy

1.2.3, released 2 years ago by an unverified publisher

Automatically gets mobile device proxy settings and configures HTTP traffic.

$ flutter pub add http_proxy
Source repository

What it does

Gets proxy settings of a mobile device automatically and sets up proxy routing for HTTP requests. It allows developers to easily inspect network traffic using tools like Charles proxy.

AI-written summary of version 1.2.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to debug HTTP requests with proxy tools like Charles on mobile devices
  • You need to automatically capture mobile device proxy settings

Skip it when

  • You do not need to debug network traffic using local proxies
  • You are looking for a complete networking client

Strengths

  • Simplifies routing HTTP traffic through proxy debugging tools
  • Automatically fetches device proxy configurations

Weaknesses

  • Limited platform support to Android and iOS
  • Not documented for advanced custom proxy configurations beyond automatic fetching

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
2

Initialize via HttpProxy.createHttpProxy() and assign to HttpOverrides.global before runApp().

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

Alternatives

Packages that do the same job and could replace http_proxy.

  • http

    A standard, widely used HTTP client for Dart which this package integrates with for proxy routing.

  • dio

    A powerful HTTP client for Dart, which has built-in support for interceptors and proxy configurations.

Works with

Packages commonly used together with http_proxy: ones it builds on, ones built on it, and its own family.