data/proxy/upstream_proxy library
Upstream proxy for routing API calls through an intermediary.
Supports request/response transforms, streaming (SSE), optional disk-based caching with TTL, latency measurement, and statistics.
Classes
- CacheEntry
- A cached response with expiration metadata.
- ProxyConfig
- Configuration for UpstreamProxy.
- ProxyRequest
- Represents a request to be forwarded through the proxy.
- ProxyResponse
- Response returned from the upstream proxy.
- ProxyStats
- Accumulated proxy traffic statistics.
- UpstreamProxy
- Proxy that forwards requests to a target through an intermediary.