Lines Matching defs:const
3 const common = require('../common');
4 const http = require('http');
5 const assert = require('assert');
6 const { Writable } = require('stream');
7 const Countdown = require('../common/countdown');
9 const N = 2;
12 const server = http.Server(common.mustCall((req, res) => {
13 const headers = { 'Content-Type': 'text/plain' };
15 const socket = res.socket;
29 const finishCountdown = new Countdown(N, common.mustCall(() => {
32 const reqCountdown = new Countdown(N, common.mustCall());
35 const opts = {
39 const req = http.get(opts);
45 const writable = new Writable({
51 const _handle = res.socket._handle;