Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct { // Backends hold backend HTTP proxies. The Proxy tries backend HTTP proxies in order of the slice and use the first one that responds with a successful status code (2XX). Backends []string // Timeout sets the deadline of trial of each backend HTTP proxy if provided. Timeout time.Duration // Callback is signaled after every trial of the backend HTTP proxies if provided. // The first argument is the CONNECT request, the second argument is the backend HTTP proxy in trial, and the last argument is the resulting error which is nil if it succeeded. Callback func(*http.Request, string, error) }
Proxy is a proxy for backend HTTP proxies.
type UnsuccessfulStatusError ¶
func (*UnsuccessfulStatusError) Error ¶
func (err *UnsuccessfulStatusError) Error() string
Click to show internal directories.
Click to hide internal directories.