Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/naji-adnan/go-retry-http

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/naji-adnan/go-retry-http

  • v0.0.0-20210104142040-2a9672a5416a
  • Source
  • Go
  • Socket score

Version published
Created
Source

go-retry-http

go-retry-http provides an http client with retry mechanism since Go's net/http client doesn’t provide a retry mechanism by default.

This is inspired by HTTP Retries in Go


A retry policy is exported as function to enable applications to implement their own retry policy. This package provides a default retry policy though, which checks for a range of status codes in the response and retry on 500 range responses.

Similarly, a backoff policy is exported as function type and a default implementation is provided too.

FAQs

Package last updated on 04 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc