Versions in this module Expand all Collapse all v0 v0.1.17 Nov 24, 2022 v0.1.16 Nov 24, 2022 Changes in this version + const Prefix + var ErrNoWWWAuthenticateHeaders = errors.New("no supported WWW-Authenticate headers") + func CanDigest(c *Challenge) bool + func IsDigest(header string) bool + type Challenge struct + Algorithm string + Charset string + Domain []string + Nonce string + Opaque string + QOP []string + Realm string + Stale bool + Userhash bool + func FindChallenge(h http.Header) (*Challenge, error) + func ParseChallenge(s string) (*Challenge, error) + func (c *Challenge) String() string + func (c *Challenge) SupportsQOP(qop string) bool + type Credentials struct + Algorithm string + Cnonce string + Nc int + Nonce string + Opaque string + QOP string + Realm string + Response string + URI string + Userhash bool + Username string + func Digest(chal *Challenge, o Options) (*Credentials, error) + func ParseCredentials(s string) (*Credentials, error) + func (c *Credentials) String() string + type Options struct + Cnonce string + Count int + Method string + Password string + URI string + Username string + type Transport struct + Digest func(*http.Request, *Challenge, Options) (*Credentials, error) + FindChallenge func(http.Header) (*Challenge, error) + Jar http.CookieJar + Password string + Transport http.RoundTripper + Username string + func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)