httpfetch

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimeout = 30 * time.Second

Variables

This section is empty.

Functions

func Client

func Client(timeout time.Duration) *http.Client

func Do

func Do(ctx context.Context, client *http.Client, method string, rawURL string, body io.Reader, action string) (*http.Response, error)

func GetBytes

func GetBytes(ctx context.Context, client *http.Client, rawURL string, action string, okStatuses ...int) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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