Registry / http-client / projectdiscovery-retryablehttp-go

projectdiscovery-retryablehttp-go

JSON →
library1.3.10gogounverified

Package retryablehttp provides a familiar HTTP client interface with automatic retries and exponential backoff.

go get github.com/projectdiscovery/retryablehttp-go
INSTALL
IMPORT
SIG · PROJECTDISCOVERY-R
P
projectdiscovery-retryablehttp-go
http-clientgov1.3.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

retryablehttp
✓ github.com/projectdiscovery/retryablehttp-go

Create a retryable HTTP client and make a GET request

package main import ( "fmt" "github.com/projectdiscovery/retryablehttp-go" ) func main() { client := retryablehttp.NewClient() resp, err := client.Get("https://example.com") if err != nil { panic(err) } fmt.Println(resp.StatusCode) }
Debug
Known issues
gotchaRequest body must be provided as a function or buffer for retries to work correctly.
fix
Use retryablehttp.ReaderFunc or *bytes.Buffer for request bodies.
affects: >=1.0.0
Upgrade
Version history
1.3.10latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
OpenAI (training)
1
Resources
projectdiscovery-retryablehttp-go — go get projectdiscovery-retryablehttp-go · libregistry