http

package
v2.0.33 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LimitedClient

type LimitedClient struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewLimitedClient

func NewLimitedClient(concurrency int64, requestTimeout, tokenTimeout time.Duration, caCert []byte) *LimitedClient

func (*LimitedClient) Do

func (lc *LimitedClient) Do(req *http.Request) (*Response, error)

func (*LimitedClient) Get

func (lc *LimitedClient) Get(urlStr string) (*Response, error)

type Response

type Response struct {
	*http.Response
	// contains filtered or unexported fields
}

func (*Response) Close

func (resp *Response) Close() error

Jump to

Keyboard shortcuts

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