MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / denyAccess

Function denyAccess

javascript/selenium-webdriver/test/http/http_test.js:53–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 res.end()
52 } else if (req.method === 'GET' && req.url === '/protected') {
53 const denyAccess = function () {
54 res.writeHead(401, { 'WWW-Authenticate': 'Basic realm="test"' })
55 res.end('Access denied')
56 }
57
58 // eslint-disable-next-line no-useless-escape
59 const basicAuthRegExp = /^\s*basic\s+([a-z0-9\-\._~\+\/]+)=*\s*$/i

Callers 1

http_test.jsFile · 0.70

Calls 1

endMethod · 0.80

Tested by

no test coverage detected