request

package
v0.20.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Do(req *http.Request) (*http.Response, error)
}

Client is the interface that wraps around method Do.

type Response

type Response struct {
	Body       []byte
	StatusCode int
}

Response represents an HTTP response.

func Do

func Do(ctx context.Context, client Client, headers http.Header, method, url string, body []byte) (Response, error)

Do performs a request with the provided arguments.

Jump to

Keyboard shortcuts

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