GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — http2: reduce require calls in http2/core · nodejs/node@74192dd

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/http2
    • core.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/http2/core.js‎

Copy file name to clipboardExpand all lines: lib/internal/http2/core.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ const { onServerStream,
2323
Http2ServerResponse,
2424
} = require('internal/http2/compat');
2525
const { utcDate } = require('internal/http');
26-
const { promisify } = require('internal/util');
26+
const {
27+
promisify,
28+
customInspectSymbol: kInspect
29+
} = require('internal/util');
2730
const { isArrayBufferView } = require('internal/util/types');
28-
const { _connectionListener: httpConnectionListener } = require('http');
31+
const { _connectionListener: httpConnectionListener } = http;
2932
const { createPromise, promiseResolve } = process.binding('util');
3033
const debug = util.debuglog('http2');
3134

@@ -67,7 +70,6 @@ const { constants, nameForErrorCode } = binding;
6770
const NETServer = net.Server;
6871
const TLSServer = tls.Server;
6972

70-
const kInspect = require('internal/util').customInspectSymbol;
7173
const { kIncomingMessage } = require('_http_common');
7274
const { kServerResponse } = require('_http_server');
7375

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.