Package net.targetr.wtm3.net.http.proxy


package net.targetr.wtm3.net.http.proxy
HTTP request forwarding and streamed responses from upstream servers.

Proxy opens a HttpURLConnection to a caller-supplied target, forwards the request method, headers and body, and creates a ProxyResponse to relay the upstream response. Upstream redirects are returned to the client rather than followed automatically.

Application handlers select the destination and any API-specific headers. The net.targetr.wtm3.net.http.proxy.cache subpackage extends this flow with in-memory response caching.

Author:
Dr Michael Gardiner