Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (14 sloc) 0.707 kb
Intent is to add Auth Digest support to node.js. Test against personal lighttpd server
-node 0.1.90 or higher
Usage Notes:
-Similar to http.Client. only export is
createClient(port, host, username, password, expectedRealm)
The parameters explain themselves, except that expectedRealm enforces auth realm.
-All HACKs and FIXMEs documented in the source.
-In normal working circumstances, the first request will either return 401 (authorization error) or 408 (request timed out). 408 is actually the success case, but since this class does not buffer the request I just force the user to retry.
Better ideas welcome.
node-http-digest is in the public domain.
Jump to Line
Something went wrong with that request. Please try again.