Function createDigestAuthHeader
Creates the digest authorization request header.
auto createDigestAuthHeader(U)
(
HTTPMethod method,
U url,
string username,
string password,
DigestAuthParams auth,
string cnonce = null,
int nc = 0,
in ubyte[] entityBody = null
)
if (is(U == string) || is(U == URL));
Parameters
Name | Description |
---|---|
method | HTTP method (required only when some qop is requested) |
username | user name |
password | user password |
url | requested url |
auth | value from the WWW-Authenticate response header |
cnonce | client generated unique data string (required only when some qop is requested) |
nc | the count of requests sent by the client (required only when some qop is requested) |
entityBody | request entity body required only if qop==auth-int |