Documentation
¶
Index ¶
- func BuildRequest(method string, urlStr string, body io.Reader, token string) (*http.Request, error)
- func NewHTTPClient() *http.Client
- func NewHTTPSclient(certFile, keyFile string) (*http.Client, error)
- func NewHTTPclientWithCA(ca []byte) (*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) (*http.Request, error)
BuildRequest Creates a HTTP request.
func NewHTTPSclient ¶
NewHTTPSclient create https client
func NewHTTPclientWithCA ¶ added in v1.3.0
NewHTTPclientWithCA create client without certificate
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.