Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var XForwardedFor = []byte("X-Forwarded-For")
Functions ¶
This section is empty.
Types ¶
type IProxyClient ¶
type IProxyClient interface { ReverseProxyHandler(ctx *fasthttp.RequestCtx) error Stat() types.ProxyStat PendingRequests() int }
func NewProxyClient ¶
func NewProxyClient(backend config.Backend, customHeaders map[string]string) IProxyClient
type ProxyClient ¶
type ProxyClient struct { Addr string // contains filtered or unexported fields }
func (*ProxyClient) PendingRequests ¶ added in v0.2.0
func (h *ProxyClient) PendingRequests() int
func (*ProxyClient) ReverseProxyHandler ¶
func (h *ProxyClient) ReverseProxyHandler(ctx *fasthttp.RequestCtx) error
func (*ProxyClient) Stat ¶
func (h *ProxyClient) Stat() types.ProxyStat
Click to show internal directories.
Click to hide internal directories.