Documentation ¶
Index ¶
- func GenerateTLSConfig(caPath string, insecureSkipTLSVerify bool) (*tls.Config, error)
- func NewHttpClientWithTLSConfig(tlsConfig *tls.Config) (*http.Client, error)
- type Client
- func (c *Client) BareDo(ctx context.Context, req *http.Request) (*Response, error)
- func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*Response, error)
- func (c *Client) LockAndDo(ctx context.Context, req *http.Request, v interface{}) (*Response, error)
- func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error)
- func (c *Client) SetHeaders(headers map[string]string)
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTLSConfig ¶ added in v2.5.1
Types ¶
Click to show internal directories.
Click to hide internal directories.