createDigestAuthHeader

Creates the digest authorization request header.

@safe
createDigestAuthHeader
(
U
)
(
HTTPMethod method
,
U url
,
string username
,
string password
,,
string cnonce = null
,
int nc = 0
,
in ubyte[] entityBody = null
)
if (
is(U == string) ||
is(U == URL)
)

Parameters

method HTTPMethod

HTTP method (required only when some qop is requested)

username string

user name

password string

user password

url U

requested url

auth DigestAuthParams

value from the WWW-Authenticate response header

cnonce string

client generated unique data string (required only when some qop is requested)

nc int

the count of requests sent by the client (required only when some qop is requested)

entityBody ubyte[]

request entity body required only if qop==auth-int

Meta