# hashicorp/go-retryablehttp

Retryable HTTP client in Go

Repository: https://github.com/hashicorp/go-retryablehttp
Canonical: https://ross.abutalabs.com/products/go-retryablehttp
Language: Go
License: MPL-2.0
License Family: copyleft
Last push: 2026-05-11T02:52:33+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 81, release rhythm 35, longevity 100
- inputs: {"age_days": 3922, "days_push": 114, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2343, forks 296 (observed 2026-08-28T04:06:39.047754+00:00)

## What it is
A Go library providing an HTTP client wrapper around net/http with automatic retries and exponential backoff. It exposes a nearly identical API to the standard library, making it easy to drop into existing Go programs.

## Use cases
- add automatic retries to http requests in go
- retry failed http calls with exponential backoff
- make resilient api calls that survive transient errors
- retry on 5xx responses and connection errors
- wrap net/http client with retry logic
- rewind request bodies for retrying post requests

## When to choose
- you want drop-in retry behavior for Go HTTP calls with a familiar net/http API
- you need to retry idempotent requests or rewindable-body requests on transient failures
- you want a battle-tested HashiCorp library with a standard *http.Client conversion

## When to avoid
- you need retries for non-HTTP protocols
- you require fine-grained custom retry policies beyond error/5xx conditions
- your Go version is older than the library's minimum requirement

## Facets
- artifact type: library
- maturity: stable
- function: http-client, middleware
- domain: web-development, developer-tools, apis
- platform: go, cross-platform
- tags: retry, exponential-backoff, net-http-wrapper, resilience

## Member repositories
- hashicorp/go-retryablehttp (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:39.047754+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:37:14.210778+00:00, confidence not recorded.
  - readme: https://github.com/hashicorp/go-retryablehttp (fetched 2026-08-28T04:06:39.047754+00:00, sha fb2c992dbae5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
