digest

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Do(req *http.Request) (*http.Response, error)
}

Client is an interface with a single Do() method, allowing functions to accept either an http.Client or a digest.DClient

type DClient

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

DClient represents an HTTP client used for making requests authenticated with http digest authentication.

func NewDClient

func NewDClient(stdClient *http.Client, username string, password string) *DClient

NewDClient returns a DClient that wraps a given standard library http Client with the given username and password

func (*DClient) Do

func (dc *DClient) Do(req *http.Request) (*http.Response, error)

Do performs an http request, wrapping it with digest authentication

Jump to

Keyboard shortcuts

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