Documentation
¶
Index ¶
Constants ¶
View Source
const ( AlgUnspec = "" AlgMD5 = "MD5" AlgSess = "MD5-sess" QopUnspec = "" QopAuth = "auth" QopInt = "auth-int" )
Algorithm & Quality of protection hashing options
Variables ¶
View Source
var ( ErrAuthStatus = errors.New("status code 401 expected") ErrAuthHeader = errors.New("no www-authenticate response header found") ErrAuthInvalid = errors.New("www-authenticate is invalid") ErrAlgInvalid = errors.New("invalid algorithm") ErrQopInvalid = errors.New("invalid qop") )
Possible errors
Functions ¶
This section is empty.
Types ¶
type Digest ¶
type Digest struct {
// contains filtered or unexported fields
}
Digest stores authentication parameters
type Request ¶
Request is a custom http.Request
func NewRequest ¶
NewRequest reflects http.NewRequest and returns a *DigestRequest
func (*Request) SetDigestAuth ¶
SetDigestAuth enables digest authentication
Click to show internal directories.
Click to hide internal directories.