vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Function createDigestAuthHeader

Creates the digest authorization request header.

auto 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));


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

Kai Nacke


© 2015 RejectedSoftware e.K.


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.