Versions in this module Expand all Collapse all v1 v1.0.3 Mar 1, 2023 Changes in this version + func StandardBackOffStrategy(expFactor time.Duration, generator *rand.Rand, stdDeviation float64) strategy.Strategy + type BytesReadSeekCloser struct + func NewBytesSeekReader(b []byte) *BytesReadSeekCloser + func (b *BytesReadSeekCloser) Close() error + type Client struct + func New(opts ...Option) *Client + func (c *Client) Do(req *http.Request, opts ...Option) (*http.Response, error) + func (c *Client) Get(ctx context.Context, url string, opts ...Option) (*http.Response, error) + func (c *Client) Head(ctx context.Context, url string, opts ...Option) (*http.Response, error) + func (c *Client) Post(ctx context.Context, url string, body io.Reader, opts ...Option) (*http.Response, error) + type Option interface + func WithRetryPolicy(requestTimeout time.Duration, maxRetries uint, strategies ...strategy.Strategy) Option + func WithSpanCarrierInjected() Option + func WithStandardRetryPolicy(requestTimeout time.Duration, maxRetries uint) Option + func WithTracingOptions(enabled bool, operationName string, spanOptions ...opentracing.StartSpanOption) Option