MCPcopy Index your code
hub / github.com/ContentSquare/chproxy / NewProxyHandler

Function NewProxyHandler

proxy_handler.go:21–25  ·  view source on GitHub ↗
(proxy *config.Proxy)

Source from the content-addressed store, hash-verified

19}
20
21func NewProxyHandler(proxy *config.Proxy) *ProxyHandler {
22 return &ProxyHandler{
23 proxy: proxy,
24 }
25}
26
27func (m *ProxyHandler) GetRemoteAddr(r *http.Request) string {
28 if m.proxy.Enable {

Callers 2

TestProxyHandlerFunction · 0.85
applyConfigFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestProxyHandlerFunction · 0.68