MCPcopy Create free account
hub / github.com/nodejs/undici / 'https - no keepalive'

Function 'https - no keepalive'

benchmarks/benchmark-https.js:179–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177
178const experiments = {
179 'https - no keepalive' () {
180 return makeParallelRequests(resolve => {
181 https.get(httpsNoKeepAliveOptions, res => {
182 res
183 .pipe(
184 new Writable({
185 write (chunk, encoding, callback) {
186 callback()
187 }
188 })
189 )
190 .on('finish', resolve)
191 })
192 })
193 },
194 'https - keepalive' () {
195 return makeParallelRequests(resolve => {
196 https.get(httpsKeepAliveOptions, res => {

Callers

nothing calls this directly

Calls 3

makeParallelRequestsFunction · 0.70
getMethod · 0.65
onMethod · 0.45

Tested by

no test coverage detected