Transport implements http.RoundTripper Digest computes the digest credentials.
If nil, the Digest function is used. FindChallenge extracts the challenge from the request headers.
If nil, the FindChallenge function is used. Jar specifies the cookie jar.
The Jar is used to insert relevant cookies into every
outbound Request and is updated with the cookie values
of every inbound Response. The Jar is consulted for every
redirect that the Client follows.
If Jar is nil, cookies are only sent if they are explicitly
set on the Request. NoReuse prevents the transport from reusing challenges.Passwordstring Probe discovers the challenge with a bodyless request before streaming the
body, so it's only sent once authenticated — for servers that reject the
unauthenticated request without draining the body. Applies only when uncached. Transport specifies the mechanism by which individual
HTTP requests are made.
If nil, DefaultTransport is used.Usernamestring CloseIdleConnections delegates the call to the underlying transport. RoundTrip will try to authorize the request using a cached challenge.
If that doesn't work and we receive a 401, we'll try again using that challenge.
*Transport : net/http.RoundTripper
Package-Level Functions (total 7)
CanDigest checks if the algorithm and qop are supported
CutPrefix removes the digest prefix from the header value
Digest creates credentials from a challenge and request options.
Note: if you want to re-use a challenge, you must increment the Count.
FindChallenge returns the first supported challenge in the headers
IsDigest returns true if the header value is a digest auth header
ParseChallenge parses the WWW-Authenticate header challenge
ParseCredentials parses the Authorization header value into credentials
Package-Level Variables (only one)
ErrNoChallenge indicates that no WWW-Authenticate headers were found.
Package-Level Constants (only one)
Prefix for digest authentication headers
The pages are generated with Goldsv0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.