Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *http.Client
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { TimeoutInSeconds int InsecureSkipVerify bool Certificates []tls.Certificate }
type HTTPClient ¶
func New ¶
func New() *HTTPClient
func (*HTTPClient) DoRequest ¶
func (h *HTTPClient) DoRequest(params Request) (*http.Response, error)
Faça uma solicitação HTTP usando a função padrão http.Client.Do
func (*HTTPClient) SetTLSConfig ¶ added in v1.12.2
func (h *HTTPClient) SetTLSConfig(config *tls.Config)
Define a configuração do certificado TLS
type HTTPClientInterface ¶ added in v1.10.3
type HttpClientMock ¶ added in v1.10.4
Click to show internal directories.
Click to hide internal directories.