system_proxy
0.1.0, released 5 years ago by an unverified publisher
A Flutter plugin to retrieve system proxy settings for Dart HttpClient.
What it does
Retrieves the device's system proxy settings so you can configure Dart's HttpClient to route traffic through a proxy. This makes it easier to inspect and grab HTTP requests for testing.
AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to grab and test Dart HttpClient requests using a network proxy tool
- You want to automatically adapt to system proxy settings on Android and iOS
Skip it when
- Targeting Android versions below 23
- You are not using Dart's HttpClient or need a completely custom proxy solution without system lookup
Strengths
- Solves the specific problem of Dart HttpClient ignoring system proxy settings by default
- Simple API to get host and port settings
Weaknesses
- Limited to Android >= 23 and iOS
- Basic features with no extensive configuration options documented
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Useful for Android >= 23.
Map<String, String> proxy = await SystemProxy.getProxySettings();
if (proxy != null) {
print('proxy $proxy');
}Alternatives
Packages that do the same job and could replace system_proxy.
- http_proxy_override
Gets system proxy settings to configure HttpOverrides for Flutter apps.
38Compare - requests_inspector
Log, inspect, and share REST and GraphQL requests by shaking your phone.
72Compare - native_flutter_proxy
Read and set system network proxy info from native on Android and iOS.
54Compare - http_proxy
Automatically gets mobile device proxy settings and configures HTTP traffic.
43Compare