MCPcopy
hub / github.com/labstack/echo / ProxyWithConfig

Function ProxyWithConfig

middleware/proxy.go:301–303  ·  view source on GitHub ↗

ProxyWithConfig returns a Proxy middleware or panics if configuration is invalid. Proxy middleware forwards the request to upstream server using a configured load balancing technique.

(config ProxyConfig)

Source from the content-addressed store, hash-verified

299//
300// Proxy middleware forwards the request to upstream server using a configured load balancing technique.
301func ProxyWithConfig(config ProxyConfig) echo.MiddlewareFunc {
302 return toMiddlewareOrPanic(config)
303}
304
305// ToMiddleware converts ProxyConfig to middleware or returns an error for invalid configuration
306func (config ProxyConfig) ToMiddleware() (echo.MiddlewareFunc, error) {

Callers 15

ProxyFunction · 0.85
TestProxyFunction · 0.85
TestProxyRealIPHeaderFunction · 0.85
TestProxyRewriteFunction · 0.85
TestProxyRewriteRegexFunction · 0.85
TestProxyErrorFunction · 0.85
TestProxyRetriesFunction · 0.85

Calls 1

toMiddlewareOrPanicFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…