mirror of
https://github.com/labstack/echo.git
synced 2024-11-24 08:22:21 +02:00
bc37a3a792
Proxy will be more verbose on errors + possibility to configure custom transport (example: for custom TLS certificates)
14 lines
246 B
Go
14 lines
246 B
Go
// +build !go1.11
|
|
|
|
package middleware
|
|
|
|
import (
|
|
"github.com/labstack/echo"
|
|
"net/http"
|
|
"net/http/httputil"
|
|
)
|
|
|
|
func proxyHTTP(t *ProxyTarget, c echo.Context, config ProxyConfig) http.Handler {
|
|
return httputil.NewSingleHostReverseProxy(t.URL)
|
|
}
|