rhttp

package
v0.0.0-...-41eecd7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHttpMovedPermanently = errors.New("moved permanently")

Functions

func NewClient

func NewClient(opts ...ClientOption) *retryablehttp.Client

Types

type ClientOption

type ClientOption func(*retryablehttp.Client)

func WithErrorIfMovedPermanently

func WithErrorIfMovedPermanently() ClientOption

func WithLogger

func WithLogger(logger interface{}) ClientOption

func WithPassthroughErrorHandler

func WithPassthroughErrorHandler() ClientOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL