http

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 9 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 struct {
	// contains filtered or unexported fields
}

A Client represents retryable http client.

func NewClient

func NewClient(ctx context.Context) Client

NewClient returns a new retryable http client.

func (Client) Close

func (cli Client) Close()

Close closes any connections which were previously connected from previous requests.

func (Client) Get

func (cli Client) Get(url string, header ...map[string]string) ([]byte, error)

Get makes a GET http-request to the URL with headers.

Jump to

Keyboard shortcuts

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