basicAuth
Callable
Parameters
req: IncomingMessage
http request object
res: ServerResponse
http response
callback: (username?: string, password?: string) => void
function(username, password)
Returns void
http request object
http response
function(username, password)
sets and parses basic auth headers if they exist