httpreq

package
v0.0.0-...-fad18c3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoRequest

func DoRequest(f RequestFunc) (*http.Response, []byte, error)

DoRequest sends HTTP requests and returns HTTP response

func DoRequestWithRetries

func DoRequestWithRetries(f RequestFunc) (resp *http.Response, body []byte, err error)

DoRequestWithRetries sends HTTP requests and returns HTTP response; retries if needed

Types

type RequestFunc

type RequestFunc func() (*http.Request, error)

Jump to

Keyboard shortcuts

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