Documentation
¶
Overview ¶
Package proxytest is a plain HTTP proxy for tests that name one in a proxy setting (providers[].proxy, gateways.telegram.proxy): it relays every absolute-form request to its target directly and records the paths it carried, so a request that went around it is one the proxy never saw. Plain-HTTP targets only: a CONNECT tunnel is refused.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithoutProxyVariables ¶
WithoutProxyVariables drops the proxy variables from env, in either case, so a child process sees only the ones its test sets: net/http reads them once per process, so the real variables can only be staged in a child.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy is a forwarding HTTP proxy on a loopback port.