vibe.d beta banner
get vibe.d
0.10.1

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

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

NameDescription
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
Authors

Kai Nacke

Copyright

© 2015 RejectedSoftware e.K.

License

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