Skip to content

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

ClassDescription
HttpDebuggerStub class for proxy management on platforms without dart:io.
HttpDebuggerClientUtility for convenient client creation.
HttpDebuggerConfigStub for platforms without dart:io (e.g. Web). Performs no operations.
HttpReverseProxyClientClient 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.
HttpReverseProxyConfigStub for reverse-proxy configuration on platforms without dart:io.