Registry / http-client / gojek-heimdall-v7

gojek-heimdall-v7

JSON →
library7.3.0gogounverified

Heimdall is an HTTP client library that provides retry, circuit breaker, and timeout mechanisms for Go applications.

go get github.com/gojek/heimdall/v7
INSTALL
IMPORT
SIG · GOJEK-HEIMDALL-V7
G
gojek-heimdall-v7
http-clientgov7.3.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.

heimdall
github.com/gojek/heimdall/v7

Creates a Heimdall HTTP client with a 10-second timeout and makes a GET request.

package main import ( "fmt" "net/http" "time" "github.com/gojek/heimdall/v7/httpclient" ) func main() { client := httpclient.NewClient(httpclient.WithHTTPTimeout(10 * time.Second)) resp, err := client.Get("https://httpbin.org/get", nil) if err != nil { panic(err) } defer resp.Body.Close() fmt.Println("Status:", resp.StatusCode) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
18
Resources
gojek-heimdall-v7 — go get gojek-heimdall-v7 · libregistry