httpclient

package
v7.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(opts ...ClientOpt) *http.Client

Types

type ClientOpt

type ClientOpt func(c *client)

func WithAuthentication

func WithAuthentication(username, password string) ClientOpt

func WithTLSConfig

func WithTLSConfig(config *tls.Config) ClientOpt

func WithTimeout

func WithTimeout(d time.Duration) ClientOpt

Jump to

Keyboard shortcuts

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