proxy.golang.org : github.com/khulnasoft-labs/retryablehttp-go : v1.0.21
Package retryablehttp provides a familiar HTTP client interface with automatic retries and exponential backoff. It is a thin wrapper over the standard net/http client library and exposes nearly the same public API. This makes retryablehttp very easy to drop into existing programs. retryablehttp performs automatic retries under certain conditions. Mainly, if an error is returned by the client (connection errors etc), or if a 500-range response is received, then a retry is invoked. Otherwise, the response is returned and left to the caller to interpret. Requests which take a request body should provide a non-nil function parameter. The best choice is to provide either a function satisfying ReaderFunc which provides multiple io.Readers in an efficient manner, a *bytes.Buffer (the underlying raw byte slice will be used) or a raw byte slice. As it is a reference type, and we will wrap it as needed by readers, we can efficiently re-use the request body without needing to copy it. If an io.Reader (such as a *bytes.Reader) is provided, the full body will be read prior to the first request, and will be efficiently re-used for any retries. ReadSeeker can be used, but some users have observed occasional data races between the net/http library and the Seek functionality of some implementations of ReadSeeker, so should be avoided if possible.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/khulnasoft-labs/[email protected]
Published:
Indexed:
- github.com/Mzack9999/go-http-digest-auth-client v0.6.1-0.20220414142836-eb8883508809
- github.com/akrylysov/pogreb v0.10.1
- github.com/andybalholm/brotli v1.0.5
- github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
- github.com/aymerick/douceur v0.2.0
- github.com/cloudflare/circl v1.3.3
- github.com/davecgh/go-spew v1.1.1
- github.com/dimchansky/utfbom v1.1.1
- github.com/gaukas/godicttls v0.0.4
- github.com/golang/snappy v0.0.4
- github.com/gorilla/css v1.0.0
- github.com/khulnasoft-lab/blackrock v0.0.5
- github.com/khulnasoft-lab/fastdialer v0.0.37
- github.com/khulnasoft-lab/hmap v0.0.17
- github.com/khulnasoft-lab/networkpolicy v0.0.8
- github.com/khulnasoft-lab/retryabledns v1.0.32
- github.com/khulnasoft-lab/utils v0.0.47
- github.com/klauspost/compress v1.16.7
- github.com/kr/text v0.2.0
- github.com/microcosm-cc/bluemonday v1.0.25
- github.com/miekg/dns v1.1.56
- github.com/pkg/errors v0.9.1
- github.com/pmezard/go-difflib v1.0.0
- github.com/quic-go/quic-go v0.37.4
- github.com/refraction-networking/utls v1.5.4
- github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d
- github.com/stretchr/testify v1.8.4
- github.com/syndtr/goleveldb v1.0.0
- github.com/tidwall/btree v1.4.3
- github.com/tidwall/buntdb v1.3.0
- github.com/tidwall/gjson v1.14.3
- github.com/tidwall/grect v0.1.4
- github.com/tidwall/match v1.1.1
- github.com/tidwall/pretty v1.2.0
- github.com/tidwall/rtred v0.1.2
- github.com/tidwall/tinyqueue v0.1.1
- github.com/ulule/deepcopier v0.0.0-20200430083143-45decc6639b6
- github.com/weppos/publicsuffix-go v0.30.2-0.20230730094716-a20f9abcc222
- github.com/yl2chen/cidranger v1.0.2
- github.com/zmap/rc2 v0.0.0-20190804163417-abaa70531248
- github.com/zmap/zcrypto v0.0.0-20231018155041-c1c1128be414
- go.etcd.io/bbolt v1.3.7
- go.uber.org/multierr v1.11.0
- golang.org/x/crypto v0.14.0
- golang.org/x/exp v0.0.0-20231006140011-7918f672742d
- golang.org/x/mod v0.13.0
- golang.org/x/net v0.17.0
- golang.org/x/sys v0.13.0
- golang.org/x/text v0.13.0
- golang.org/x/tools v0.14.0
- gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
- gopkg.in/yaml.v3 v3.0.1