Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndpointIDFromRequest ¶ added in v0.3.0
EndpointIDFromRequest returns the endpoint ID from the HTTP request, or an empty string if no endpoint ID is specified.
This will check both the 'x-piko-endpoint' header and 'Host' header, where x-piko-endpoint takes precedence.
Types ¶
type ReverseProxy ¶ added in v0.3.0
type ReverseProxy struct {
// contains filtered or unexported fields
}
func NewReverseProxy ¶ added in v0.3.0
func (*ReverseProxy) ServeHTTP ¶ added in v0.3.0
func (p *ReverseProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.