httputil

package
v0.0.0-...-a345a4b Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientByTLSConfig

func NewClientByTLSConfig(tlsConf *tls.Config) *http.Client

NewClient returns an HTTP(s) client. Copied from br/pkg/httputil/http.go TODO: eliminate duplicated codes with `NewClient`.

Types

type Client

type Client struct {
	http.Client
}

Client wraps an HTTP client and support TLS requests.

func NewClient

func NewClient(credential *security.Credential) (*Client, error)

NewClient creates an HTTP client with the given Credential.

Jump to

Keyboard shortcuts

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