reverseproxy

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserIdToHeader added in v1.1.3

func AddUserIdToHeader(req *http.Request) error

AddUserIdToHeader puts userId claim to request header

func ClearCorsHeaders added in v1.1.3

func ClearCorsHeaders(response *http.Response) error

ClearCorsHeaders deletes cors headers from upstream service

func NewReverseProxy

func NewReverseProxy(transport http.RoundTripper, requestModifier RequestModifier, responseModifier ResponseModifier) handler.Func

NewReverseProxy create a new reverproxy http.Handler for each endpoint

Types

type RequestModifier added in v1.1.3

type RequestModifier func(r *http.Request) error

type ResponseModifier added in v1.1.3

type ResponseModifier func(r *http.Response) error

Jump to

Keyboard shortcuts

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