Documentation ¶ Index ¶ func Do(ctx context.Context, httpClient *http.Client, method, url string, ...) ([]byte, error) func NewClient(rootCAs *x509.CertPool, certs ...tls.Certificate) (*http.Client, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Do ¶ func Do( ctx context.Context, httpClient *http.Client, method, url string, headers map[string]string, requestBody io.Reader) ([]byte, error) func NewClient ¶ added in v0.6.0 func NewClient(rootCAs *x509.CertPool, certs ...tls.Certificate) (*http.Client, error) NewClient creates an *http.Client that clones http.DefaultTransport settings and applies the given TLS configuration. This avoids duplicating transport setup across provider, auth, and crypto packages. Types ¶ This section is empty. Source Files ¶ View all Source files http.go Click to show internal directories. Click to hide internal directories.