httputil

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecorateClient

func DecorateClient(c *http.Client, opts ...ClientOpt) (*http.Client, error)

DecorateClient performs some custom modifications to an http Client

Types

type ClientOpt

type ClientOpt func(*http.Client) error

func Digest

func Digest(publicKey, privateKey string) ClientOpt

Digest is the option adding digest authentication capability to an http client

func LoggingTransport

func LoggingTransport(log *zap.SugaredLogger) ClientOpt

LoggingTransport is the option adding logging capability to an http Client

Jump to

Keyboard shortcuts

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