X Hamster.proxy =link= File

In short, it’s a that runs fast, stays low‑profile, and can be extended to do almost anything you need from a modern forward proxy.

Use MITM only in trusted environments (dev, test, or with explicit consent). The proxy never stores private keys beyond the process’ memory. x hamster.proxy

| Use‑Case | How x hamster.proxy Helps | |----------|---------------------------| | | Intercept and modify API calls on‑the‑fly (e.g., inject mock responses, debug headers). | | CI / testing pipelines | Spin up a lightweight proxy container that records traffic, enforces rate limits, or simulates flaky networks. | | Edge routing | Deploy a single binary to a Kubernetes side‑car that decides where each request goes based on a tiny policy file. | | Security research | Use the TLS MITM feature to inspect encrypted traffic without needing a heavy tool like Burp Suite. | | Observability | Export per‑endpoint latency, error rates, and throughput directly to Prometheus. | | Learning asyncio | Its middleware pattern is a great sandbox for practicing async Python without the complexity of a full framework. | In short, it’s a that runs fast, stays

proxy.add_route(geo_based_route)

# ------------------------------------------------- # 3️⃣ Middleware: add custom header # ------------------------------------------------- @proxy.middleware async def inject_header(request: Request, call_next): request.headers["X-From-Hamster"] = "yes" return await call_next(request) | Use‑Case | How x hamster