/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ext/node/polyfills/internal/http2/core.ts
32 строки
841 B
Nathan Whitaker
perf: lazy-load more modules in the snapshot (#34061)
19 май 2026, 02:37
Не верифицирован
19 май 2026, 02:37
eb4061f
Код
Авторство
О чём код?
// Copyright 2018-2026 the Deno authors. MIT license. // Subset of node's `internal/http2/core` module - exposes the internal // HTTP/2 classes that some tests use for `instanceof` checks. (function () { const { core } = __bootstrap; const lazyHttp2 = core.createLazyLoader("node:http2"); return { get ClientHttp2Session() { return lazyHttp2().ClientHttp2Session; }, get Http2Session() { return lazyHttp2().Http2Session; }, get Http2Stream() { return lazyHttp2().Http2Stream; }, get ServerHttp2Session() { return lazyHttp2().ServerHttp2Session; }, get default() { return { ClientHttp2Session: lazyHttp2().ClientHttp2Session, Http2Session: lazyHttp2().Http2Session, Http2Stream: lazyHttp2().Http2Stream, ServerHttp2Session: lazyHttp2().ServerHttp2Session, }; }, }; })();