Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Challenge ¶
type Challenge struct {
Realm string
Nonce string
Opaque string
QOP string
Algorithm string
Stale string
}
Challenge represents a parsed Digest authentication challenge.
func ParseChallenge ¶
ParseChallenge parses a WWW-Authenticate header value for Digest auth.
Digest parameters use the HTTP quoted-string grammar. In particular, a backslash quotes the following octet and cannot occur as the last octet of a quoted value. Parsing is strict so a malformed challenge is not silently treated as an ordinary 401 response.
Click to show internal directories.
Click to hide internal directories.