Files
httpclient/provider.go
T

10 lines
295 B
Go
Raw Permalink Normal View History

package httpclient
import "net/http"
// Provider executes HTTP requests with automatic retry and circuit breaking.
// Inject Provider into services that make outbound HTTP calls; construct with New or NewWithDefaults.
type Provider interface {
Do(req *http.Request) (*http.Response, error)
}