MCPcopy Index your code
hub / github.com/Unitech/pm2 / sendBasicAuthResponse

Function sendBasicAuthResponse

lib/API/Serve.js:465–471  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

463}
464
465function sendBasicAuthResponse(response) {
466 response.writeHead(401, {
467 'Content-Type': 'text/html',
468 'WWW-Authenticate': 'Basic realm="Authentication service"'
469 });
470 return response.end('401 Unauthorized');
471}

Callers 1

Serve.jsFile · 0.85

Calls 2

writeHeadMethod · 0.80
endMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…