{"id":53139,"library":"puerkitobio-rehttp","title":"Rehttp HTTP Retry Transport","description":"Package rehttp implements an HTTP transport that handles retries with configurable strategies.","status":"active","version":"1.4.0","language":"go","source_language":null,"source_url":"https://github.com/PuerkitoBio/rehttp","tags":["http","retry","transport","client","networking"],"install":[{"cmd":"go get github.com/PuerkitoBio/rehttp","lang":"bash","label":"Install github.com/PuerkitoBio/rehttp"}],"dependencies":[],"imports":[{"symbol":"rehttp","correct":"github.com/PuerkitoBio/rehttp"}],"quickstart":{"code":"package main\n\nimport (\n    \"net/http\"\n    \"github.com/PuerkitoBio/rehttp\"\n)\n\nfunc main() {\n    tr := rehttp.NewTransport(\n        http.DefaultTransport,\n        rehttp.RetryAll(rehttp.RetryMaxRetries(3), rehttp.RetryAny(rehttp.RetryTemporaryErr())),\n        rehttp.ConstDelay(0),\n    )\n    client := &http.Client{Transport: tr}\n    client.Get(\"http://example.com\")\n}","lang":"go","description":"Creates an HTTP client with retry logic for temporary errors."},"warnings":[{"fix":"Set PreventRetryWithBody to true to disable retries for requests with bodies.","message":"Body buffering may cause high memory usage for large requests.","severity":"gotcha","affected_versions":"<1.4.0"}],"env_vars":null,"search_vec":"'client':20 'configur':15 'handl':12 'http':2,9,17 'implement':7 'network':21 'packag':5 'rehttp':1,6 'retri':3,13,18 'strategi':16 'transport':4,10,19","created_at":"2026-06-15T07:28:39.288119+00:00","updated_at":"2026-06-15T07:28:39.288119+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/PuerkitoBio/rehttp","github":"https://github.com/PuerkitoBio/rehttp","docs":"https://pkg.go.dev/github.com/PuerkitoBio/rehttp#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-client"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}