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

Function initializeTLSOptions

lib/internal/http2/core.js:3415–3427  ·  view source on GitHub ↗
(options, servername)

Source from the content-addressed store, hash-verified

3413}
3414
3415function initializeTLSOptions(options, servername) {
3416 options = initializeOptions(options);
3417
3418 if (!options.ALPNCallback) {
3419 options.ALPNProtocols = ['h2'];
3420 if (options.allowHTTP1 === true)
3421 options.ALPNProtocols.push('http/1.1');
3422 }
3423
3424 if (servername !== undefined && !options.servername)
3425 options.servername = servername;
3426 return options;
3427}
3428
3429function onErrorSecureServerSession(err, socket) {
3430 if (!this.emit('clientError', err, socket))

Callers 2

constructorMethod · 0.85
connectFunction · 0.85

Calls 2

initializeOptionsFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…