View definition

func TykNewSingleHostReverseProxy

Defined in github.com/TykTechnologies/tyk/tyk_reverse_proxy_clone.go

Description

TykNewSingleHostReverseProxy returns a new ReverseProxy that rewrites URLs to the scheme, host, and base path provided in target. If the target's path is "/base" and the incoming request was for "/dir", the target request will be for /base/dir. This version modifies the stdlib version by also setting the host to the target, this allows us to work with heroku and other such providers

TykNewSingleHostReverseProxy is referenced in 1 repository

github.com/TykTechnologies/tyk