http

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(
	target string,
	method Method,
	header map[string]string,
	data []byte,
	opts ...Option,
) ([]byte, error)

Types

type Config

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

type Method

type Method int64
const (
	GET Method = iota
	POST
)

func (Method) String

func (i Method) String() string

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithClient

func WithClient(client *http.Client) Option

func WithContext

func WithContext(ctx context.Context) Option

func WithRetry

func WithRetry(retry int) Option

Jump to

Keyboard shortcuts

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