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
-
ClassesClassDescriptionOpens a connection to another web server and streams response to client.Streams a response to a client from another connection.Enforces security constraints on proxy destination URLs to prevent Server-Side Request Forgery (SSRF) and unauthorized access to local or internal network resources.