proxyutil

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModifyResponseChain

func ModifyResponseChain(fns ...func(*http.Response) error) func(*http.Response) error

func RemoveCORSHeaders

func RemoveCORSHeaders(resp *http.Response) error

RemoveCORSHeaders removes all CORS related headers from the http.Response.

This is necessary because the ReverseProxy appends these headers to the ones already existing on the downstream response, however the downstream response already contains CORS headers which get added by the CORS middleware.

func RewriteChain

func RewriteChain(fns ...func(*httputil.ProxyRequest)) func(*httputil.ProxyRequest)

func RewriteFullFunc

func RewriteFullFunc(url *url.URL) func(r *httputil.ProxyRequest)

func RewriteHostFunc

func RewriteHostFunc(url *url.URL) func(r *httputil.ProxyRequest)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL