Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TestHooksEnabled is true if interceptors are installed TestHooksEnabled = false )
Functions ¶
func DisableTestHooks ¶
func DisableTestHooks()
DisableTestHooks disables the installed interceptors.
func EnableTestHooks ¶
func EnableTestHooks(interceptors []Interceptor) error
EnableTestHooks installs the given interceptors to be used by URL and Request.
Types ¶
type Interceptor ¶
Interceptor is used to change the host, and maybe the client, for a request to point to a test host.
Click to show internal directories.
Click to hide internal directories.