MCPcopy Index your code
hub / github.com/nodejs/node / SNICallback

Function SNICallback

lib/internal/tls/wrap.js:1705–1717  ·  view source on GitHub ↗
(servername, callback)

Source from the content-addressed store, hash-verified

1703};
1704
1705function SNICallback(servername, callback) {
1706 const contexts = this.server._contexts;
1707
1708 for (let i = contexts.length - 1; i >= 0; --i) {
1709 const elem = contexts[i];
1710 if (elem[0].test(servername)) {
1711 callback(null, elem[1]);
1712 return;
1713 }
1714 }
1715
1716 callback(null, undefined);
1717}
1718
1719
1720// Target API:

Callers

nothing calls this directly

Calls 2

callbackFunction · 0.50
testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…