Documentation
¶
Index ¶
- func BuildClientAuth(clientCert, clientCertKey string, clientCertConfig config.ClientAuth) config.ClientAuth
- func BuildHeaders(reqHeaders []string, configHeaders map[string]string, includeJSON bool) (map[string]string, error)
- func BuildURL(path string, configURL string) (string, error)
- func CreateClient(followRedirects bool, timeout int, clientCert config.ClientAuth) (*http.Client, error)
- func CreateRequest(method, url string, body []byte, headers map[string]string) (*http.Request, error)
- func CreateUserAgent() string
- func DisableTLSVerification()
- func GetVersion() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildClientAuth ¶
func BuildClientAuth(clientCert, clientCertKey string, clientCertConfig config.ClientAuth) config.ClientAuth
Creates a ClientAuth object
func BuildHeaders ¶
func BuildHeaders(reqHeaders []string, configHeaders map[string]string, includeJSON bool) (map[string]string, error)
BuildHeaders will return a map[string]string of headers
func CreateClient ¶
func CreateClient(followRedirects bool, timeout int, clientCert config.ClientAuth) (*http.Client, error)
CreateClient will create a new http.Client with basic defaults
func CreateRequest ¶
func CreateRequest(method, url string, body []byte, headers map[string]string) (*http.Request, error)
CreateRequest will create a request object
func CreateUserAgent ¶
func CreateUserAgent() string
func DisableTLSVerification ¶
func DisableTLSVerification()
DisableTLSVerification disables TLS verification
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.