Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultAttemptsCount = 1 DefaultRetryDelay = time.Duration(1) * time.Second )
Variables ¶
This section is empty.
Functions ¶
func NewDefaultTransport ¶
NewDefaultTransport configure a transport with the TLS skip verify option
Types ¶
type HTTPClient ¶
type HTTPClient struct { http.Client CheckResponseStatus func(*http.Request, *http.Response) error Options *HTTPClientOptions }
HTTPClient saml2alibabacloud http client which extends the existing client
func NewHTTPClient ¶
func NewHTTPClient(tr http.RoundTripper, opts *HTTPClientOptions) (*HTTPClient, error)
NewHTTPClient configure the default http client used by the providers
func (*HTTPClient) DisableFollowRedirect ¶
func (hc *HTTPClient) DisableFollowRedirect()
DisableFollowRedirect disable redirects
func (*HTTPClient) EnableFollowRedirect ¶
func (hc *HTTPClient) EnableFollowRedirect()
EnableFollowRedirect enable redirects
type HTTPClientOptions ¶
type HTTPClientOptions struct { IsWithRetries bool //http retry feature switch AttemptsCount uint RetryDelay time.Duration }
func BuildHttpClientOpts ¶
func BuildHttpClientOpts(account *cfg.IDPAccount) *HTTPClientOptions
BuildHttpClientOpts build http client options such as attempts count and retry delay
Click to show internal directories.
Click to hide internal directories.