Documentation ¶
Index ¶
- func BuildRequest(method string, urlStr string, body io.Reader, token string, nodeName string) (*http.Request, error)
- func NewHTTPClient() *http.Client
- func NewHTTPClientWithCA(capem []byte, certificate tls.Certificate) (*http.Client, error)
- func NewHTTPSClient(certFile, keyFile string) (*http.Client, error)
- func SendRequest(req *http.Request, client *http.Client) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRequest ¶
func BuildRequest(method string, urlStr string, body io.Reader, token string, nodeName string) (*http.Request, error)
BuildRequest Creates a HTTP request.
func NewHTTPClientWithCA ¶
NewHTTPClientWithCA create client without certificate
func NewHTTPSClient ¶
NewHTTPSClient create https client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.