Skip to content
Find file
9 lines (6 sloc) 254 Bytes
digest = require '../lib/main.js'
server = digest.createServer 'username', 'password', (req, res) ->
res.writeHead 200, 'Content-Type': 'text/plain'
res.end 'Hello world! You are authenticated!'
server.listen 8080
console.log 'Server running!'
Jump to Line
Something went wrong with that request. Please try again.