vibe.d beta banner
get vibe.d
0.10.1

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

performDigestAuth - multiple declarations

Function performDigestAuth

Returns a request handler that enforces request to be authenticated using HTTP Digest Auth.

@safe void delegate(HTTPServerRequest, HTTPServerResponse) performDigestAuth (
  DigestAuthInfo info,
  scope @safe string delegate(string, string) pwhash
) @safe;

Function performDigestAuth

Scheduled for deprecation - use a @safe callback instead.

@safe void delegate(HTTPServerRequest, HTTPServerResponse) performDigestAuth (
  DigestAuthInfo info,
  scope string delegate(string, string) pwhash
);

Function performDigestAuth

Enforces HTTP Digest Auth authentication on the given req/res pair.

string performDigestAuth (
  scope HTTPServerRequest req,
  scope HTTPServerResponse res,
  DigestAuthInfo info,
  scope @safe string delegate(string, string) pwhash
) @safe;

Parameters

NameDescription
req Request object that is to be checked
res Response object that will be used for authentication errors
info Digest authentication info object
pwhash A delegate queried for returning the digest password

Returns

Returns the name of the authenticated user.

Throws

Throws a HTTPStatusExeption in case of an authentication failure.

Function performDigestAuth

Scheduled for deprecation - use a @safe callback instead.

string performDigestAuth (
  scope HTTPServerRequest req,
  scope HTTPServerResponse res,
  DigestAuthInfo info,
  scope string delegate(string, string) pwhash
);
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.