Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCorsPreflight ¶
func IsCorsPreflight() goproxy.ReqConditionFunc
Returns a ReqCondition testing whether the request is the CORS preflight
func UrlMatches ¶
func UrlMatches(regexps ...*regexp.Regexp) goproxy.ReqConditionFunc
UrlMatches returns a ReqCondition testing whether the destination URL of the request matches any of the given regexp
Types ¶
type Proxy ¶
type Proxy struct { *goproxy.ProxyHttpServer // contains filtered or unexported fields }
func NewReverseProxy ¶
Click to show internal directories.
Click to hide internal directories.