Versions in this module Expand all Collapse all v4 v4.16.3 Aug 12, 2025 v4.16.2 Aug 12, 2025 Changes in this version + const ValidateMethodBasic + const ValidateMethodDigestMD5 + const ValidateMethodSHA256 + func GenerateNonce() (string, error) + func GenerateWWWAuthenticate(methods []ValidateMethod, realm string, nonce string) base.HeaderValue + func Validate(req *base.Request, user string, pass string, methods []ValidateMethod, ...) error + func Verify(req *base.Request, user string, pass string, methods []VerifyMethod, ...) error + type Sender struct + Pass string + User string + WWWAuth base.HeaderValue + func NewSender(wwwAuth base.HeaderValue, user string, pass string) (*Sender, error) + func (se *Sender) AddAuthorization(req *base.Request) + func (se *Sender) Initialize() error + type ValidateMethod = VerifyMethod + type VerifyMethod int + const VerifyMethodBasic + const VerifyMethodDigestMD5 + const VerifyMethodDigestSHA256