Versions in this module Expand all Collapse all v3 v3.31.2 Jan 26, 2024 Changes in this version + const DefaultConnectTimeout + const DefaultKeepAliveDuration + const DefaultMaxIdleConnsPerHost + const DefaultResetPeriod + const DefaultTLSHandshakeTimeout + func DefaultHTTPClient() *http.Client + func URLDecode(data []byte, itf interface{}) error + func URLEncode(itf interface{}) string + type Host struct + type Outcome int + const DefaultReadTimeout + const DefaultWriteTimeout + const Failure + const Retry + const Success + type Requester interface + Request func(req *http.Request) (*http.Response, error) + type RetryStrategy struct + func (s *RetryStrategy) Decide(h Host, code int, err error) Outcome + func (s *RetryStrategy) GetTryableHosts(k call.Kind) (hosts []Host) + type StatefulHost struct + func NewStatefulHost(host string, accept func(k call.Kind) bool) *StatefulHost + func Shuffle(hosts []*StatefulHost) []*StatefulHost + type Transport struct + func New(hosts []*StatefulHost, requester Requester, appID string, apiKey string, ...) *Transport + func (t *Transport) Request(res interface{}, method string, path string, body interface{}, k call.Kind, ...) error