http_debugger
Library for debugging HTTP requests through a proxy server.
Supports two modes:
- Forward proxy: routes all requests through the proxy server
- Reverse proxy: rewrites URLs to work through reverse-proxy
On platforms with dart:io support (iOS, Android, Desktop) works fully; on Web and other platforms exports stubs without side effects.
Classes
| Class | Description |
|---|---|
| HttpDebugger | Stub class for proxy management on platforms without dart:io. |
| HttpDebuggerClient | Utility for convenient client creation. |
| HttpDebuggerConfig | Stub for platforms without dart:io (e.g. Web). Performs no operations. |
| HttpReverseProxyClient | Client wrapper for package:http that rewrites URL to reverse-proxy format: {proxyBaseUrl}{proxyHttpPath}?_target=<FULL_UPSTREAM_URL> Works on Web and IO since rewriting happens before sending the request. |
| HttpReverseProxyConfig | Stub for reverse-proxy configuration on platforms without dart:io. |