Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetURLScheme ¶
GetURLScheme returns the scheme of a URL
Types ¶
type AuthMethod ¶
AuthMethod represent a method to authenticate with a proxy
type PreparedRequest ¶
PreparedRequest contains everything needed to make a request through a proxy
func MakeClientAndRequest ¶
func MakeClientAndRequest(rc RequestConfig) (*PreparedRequest, error)
MakeClientAndRequest prepares a client and a request
type RequestConfig ¶ added in v0.3.0
type RequestConfig struct { Target string Proxy string Auth *AuthMethod SourceAddr string Insecure bool Timeout time.Duration }
RequestConfig is used to build a request
Click to show internal directories.
Click to hide internal directories.