Registry / http-client / cristalhq-hedgedhttp

cristalhq-hedgedhttp

JSON →
library0.9.1gogounverified

Provides a hedged HTTP client that issues multiple requests and uses the first successful response.

go get github.com/cristalhq/hedgedhttp
INSTALL
IMPORT
SIG · CRISTALHQ-HEDGEDHT
C
cristalhq-hedgedhttp
http-clientgov0.9.1
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.

hedgedhttp
github.com/cristalhq/hedgedhttp

Create a hedged HTTP client with 3 concurrent requests.

package main import ( "fmt" "net/http" "github.com/cristalhq/hedgedhttp" ) func main() { client := hedgedhttp.New(3, 100, http.DefaultClient) resp, _ := client.Get("https://example.com") fmt.Println(resp.StatusCode) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
28
Resources
cristalhq-hedgedhttp — go get cristalhq-hedgedhttp · libregistry