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

Method constructor

lib/internal/http2/core.js:2889–2895  ·  view source on GitHub ↗
(session, handle, id, options, headers)

Source from the content-addressed store, hash-verified

2887
2888class ServerHttp2Stream extends Http2Stream {
2889 constructor(session, handle, id, options, headers) {
2890 super(session, options);
2891 handle.owner = this;
2892 this[kInit](id, handle);
2893 this[kProtocol] = headers[HTTP2_HEADER_SCHEME];
2894 this[kAuthority] = getAuthority(headers);
2895 }
2896
2897 // True if the remote peer accepts push streams
2898 get pushAllowed() {

Callers

nothing calls this directly

Calls 1

getAuthorityFunction · 0.85

Tested by

no test coverage detected