Lines Matching defs:const
2 const common = require('../common');
6 const assert = require('assert');
7 const https = require('https');
8 const { once } = require('events');
9 const Agent = https.Agent;
10 const fixtures = require('../common/fixtures');
12 const { getEventListeners } = require('events');
13 const agent = new Agent();
15 const options = {
20 const server = https.createServer(options);
23 const port = server.address().port;
24 const host = 'localhost';
25 const options = {
33 const ac = new AbortController();
34 const { signal } = ac;
35 const connection = agent.createConnection({ ...options, signal });
38 const [err] = await once(connection, 'error');
43 const ac = new AbortController();
44 const { signal } = ac;
46 const connection = agent.createConnection({ ...options, signal });
47 const [err] = await once(connection, 'error');
53 const ac = new AbortController();
54 const { signal } = ac;
55 const request = https.get({
63 const [err] = await once(request, 'error');
68 const ac = new AbortController();
69 const { signal } = ac;
71 const request = https.get({
78 const [err] = await once(request, 'error');