httpmisc

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ClientTimeout = 30 * time.Second

Variables

This section is empty.

Functions

func GetWithContextWithClient

func GetWithContextWithClient(ctx context.Context, client *http.Client, url string) (*http.Response, error)

func ResponseOK

func ResponseOK(resp *http.Response) error

Types

type ResourceError

type ResourceError struct {
	// contains filtered or unexported fields
}

func (ResourceError) Is

func (err ResourceError) Is(target error) bool

Jump to

Keyboard shortcuts

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