Registry / http-client / onsdigital-dp-rchttp

onsdigital-dp-rchttp

JSON →
library1.0.0gogounverified

HTTP client with retry and circuit breaker functionality for Go services.

go get github.com/ONSdigital/dp-rchttp
INSTALL
IMPORT
SIG · ONSDIGITAL-DP-RCHT
O
onsdigital-dp-rchttp
http-clientgov1.0.0
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.

rchttp
github.com/ONSdigital/dp-rchttp

Creates an HTTP client with retry and circuit breaker.

package main import ( "fmt" "net/http" "github.com/ONSdigital/dp-rchttp" ) func main() { client := rchttp.NewClient() resp, err := client.Get("https://example.com") if err != nil { panic(err) } fmt.Println(resp.StatusCode) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
onsdigital-dp-rchttp — go get onsdigital-dp-rchttp · libregistry