1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-05 00:58:47 +02:00

added ModifyResponse option to ProxyConfig (#1622)

Co-authored-by: Peter C <petoc@users.noreply.github.com>
This commit is contained in:
Peter C
2020-08-28 02:51:27 +02:00
committed by GitHub
parent 8dd25c39ce
commit 6463bcb190
3 changed files with 22 additions and 1 deletions

View File

@ -45,6 +45,9 @@ type (
// Examples: If custom TLS certificates are required.
Transport http.RoundTripper
// ModifyResponse defines function to modify response from ProxyTarget.
ModifyResponse func(*http.Response) error
rewriteRegex map[*regexp.Regexp]string
}