DigestAuthClient constructor
DigestAuthClient(})
Creates a client wrapping inner
that uses Basic HTTP auth.
Constructs a new BasicAuthClient which will use the provided username
and password
for all subsequent requests.
Implementation
DigestAuthClient(String username, String password,
{http.Client? inner, String? authenticationHeader})
: _auth = utils.DigestAuth(username, password),
_inner = inner ?? http.Client() {
if (authenticationHeader != null) {
_auth.initFromAuthenticateHeader(authenticationHeader);
}
}