http

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildUnexpectedStatusErr

func BuildUnexpectedStatusErr(response *http.Response) error

BuildUnexpectedStatusErr builds an error for an unexpected HTTP response.

Types

type Doer

type Doer interface {
	// Do executes the given HTTP request.
	Do(request *http.Request) (*http.Response, error)
}

Doer is an abstract of the Do method on the provided HTTP client.

Directories

Path Synopsis
json
rpc

Jump to

Keyboard shortcuts

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