go-retry | Go library for retrying with configurable backoffs | HTTP library
kandi X-RAY | go-retry Summary
kandi X-RAY | go-retry Summary
Go library for retrying with configurable backoffs
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of go-retry
go-retry Key Features
go-retry Examples and Code Snippets
Community Discussions
Trending Discussions on go-retry
QUESTION
I would like to understand how to use go-retryablehttp with a Client with a custom Transport, let's say for instance to disable TLS validation, how can this be achieved?
...ANSWER
Answered 2020-Nov-30 at 23:31You can access the underlying http client as seen in this issue. Here is a small example of ignoring an self signed cert error at 127.0.0.1:8030
QUESTION
I want to implement a custom http.Transport
for standard http.Client
, which will retry automatically if the client got timeout.
P.S. for some reason, the custom http.Transport
is a must-have. I've already checked hashicorp/go-retryablehttp, however it won't let me use my own http.Transport
.
Here's my attempts, the custom component:
...ANSWER
Answered 2020-Jul-15 at 06:52There is no need to customize the http.Client or such things. You can simply wrap your fetch operation into a retry -- there are plenty of modules available that do the trick:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install go-retry
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page