httpclient

package
v0.0.0-...-f8036e4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: Unlicense Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(in []byte) (out []byte)

func Decompress

func Decompress(in []byte) (out []byte, err error)

Types

type ClientManager

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

func NewClientManager

func NewClientManager(tlsClientConfig *tls.Config, dialer *net.Dialer) *ClientManager

func (*ClientManager) GetHttpClient

func (m *ClientManager) GetHttpClient(address string) (client *http.Client, close func())

type Provider

type Provider struct {
	Cfg   config.Provider
	Token string
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(cfg config.Provider) (provider *Provider, err error)

func (*Provider) Url

func (p *Provider) Url() (uri url.URL, done func())

Jump to

Keyboard shortcuts

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