Documentation
¶
Overview ¶
Package proxy wraps and configures an HTTP reverse proxy to forward requests to the configured upstream target.
Index ¶
Constants ¶
View Source
const ( HeaderForwardedHost = "X-Forwarded-Host" HeaderForwardedFor = "X-Forwarded-For" HeaderForwardedProto = "X-Forwarded-Proto" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
New constructs a reverse proxy handler that forwards requests to the target address. It applies sane defaults for CouchDB, strips sensitive headers, and enriches forwarding headers (X-Forwarded-*). Upstream errors are mapped to 502/504 as appropriate; client cancellations are silently ignored.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.