HttpResponseEx.authorize

Usage:

if (!response.authorize(request,
                        (username, password) => username == "JohnSmith" && password == "hunter2"))
    return conn.serveResponse(response);
class HttpResponseEx
bool
authorize
(,
bool delegate
(
string username
,
string password
)
authenticator
)

Meta