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

Method constructor

lib/internal/http2/core.js:3498–3507  ·  view source on GitHub ↗
(options, requestListener)

Source from the content-addressed store, hash-verified

3496
3497class Http2Server extends NETServer {
3498 constructor(options, requestListener) {
3499 options = initializeOptions(options);
3500 super(options, connectionListener);
3501 this[kOptions] = options;
3502 this[kSessions] = new SafeSet();
3503 this.timeout = 0;
3504 this.on('newListener', setupCompat);
3505 if (typeof requestListener === 'function')
3506 this.on('request', requestListener);
3507 }
3508
3509 setTimeout(msecs, callback) {
3510 this.timeout = msecs;

Callers

nothing calls this directly

Calls 2

initializeOptionsFunction · 0.85
onMethod · 0.45

Tested by

no test coverage detected