Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/undici
/ functions
Functions
2,475 in github.com/nodejs/undici
⨍
Functions
2,475
◇
Types & classes
605
↓ 1 callers
Function
buildAndValidateMockOptions
(opts)
lib/mock/mock-utils.js:684
↓ 1 callers
Method
buildConnectRequest
* Build a SOCKS5 request
lib/core/socks5-client.js:294
↓ 1 callers
Function
buildContentRange
* @see https://fetch.spec.whatwg.org/#build-a-content-range * @param {number} rangeStart * @param {number} rangeEnd * @param {number} fullLength
lib/web/fetch/util.js:1220
↓ 1 callers
Method
buildDispatch
(dispatcher, maxRedirections)
lib/handler/redirect-handler.js:13
↓ 1 callers
Function
buildEventStream
(count)
benchmarks/eventsource/eventsource-stream.mjs:6
↓ 1 callers
Function
buildH2CapableSSLProxy
()
test/proxy-agent.js:1695
↓ 1 callers
Function
buildHeaders
* @param {string[] | Record<string, string>} headers * @returns {Record<string, string>}
lib/dispatcher/proxy-agent.js:331
↓ 1 callers
Function
buildParams
(path)
test/client.js:2184
↓ 1 callers
Function
buildProxy
()
test/env-http-proxy-agent.js:204
↓ 1 callers
Function
buildProxy
(listener)
test/proxy-agent.js:1670
↓ 1 callers
Function
buildProxy
()
test/proxy.js:186
↓ 1 callers
Function
buildRequestHeaders
(reqHeaders)
lib/dispatcher/client-h2.js:829
↓ 1 callers
Function
buildSSLProxy
()
test/proxy-agent.js:1679
↓ 1 callers
Function
buildSSLServer
()
test/proxy-agent.js:1655
↓ 1 callers
Function
buildServer
()
test/env-http-proxy-agent.js:197
↓ 1 callers
Function
buildServer
()
test/proxy-agent.js:1648
↓ 1 callers
Function
buildServer
()
test/proxy.js:179
↓ 1 callers
Function
buildTestEnvironments
* @param {number} idx * @param {TestEnvironment[][]} testOptions * @returns {TestEnvironment[]}
test/cache-interceptor/cache-tests.mjs:264
↓ 1 callers
Function
calculateRetryAfterHeader
(retryAfter)
lib/handler/retry-handler.js:12
↓ 1 callers
Function
canCacheResponse
* @see https://www.rfc-editor.org/rfc/rfc9111.html#name-storing-responses-to-authen * * @param {import('../../types/cache-interceptor.d.ts').default
lib/handler/cache-handler.js:510
↓ 1 callers
Function
canConnect
* @param {string} host * @param {number} port * @param {string} protocol * @returns {Promise<boolean>}
test/cache-interceptor/cache-tests-worker.mjs:119
↓ 1 callers
Function
charCodeAtApproach
* @param {string} characters
benchmarks/core/is-valid-header-char.mjs:12
↓ 1 callers
Function
checkError
(err)
test/node-test/client-errors.js:847
↓ 1 callers
Function
checkMemoryTrend
()
test/tls-cert-leak.js:149
↓ 1 callers
Function
checkNetConnect
(netConnect, origin)
lib/mock/mock-utils.js:662
↓ 1 callers
Function
chunksConcat
* @param {Buffer[]} chunks * @param {number} length * @returns {Uint8Array}
lib/api/readable.js:519
↓ 1 callers
Function
chunksDecode
* @param {Buffer[]} chunks * @param {number} length * @param {BufferEncoding} [encoding='utf8'] * @returns {string}
lib/api/readable.js:492
↓ 1 callers
Function
churningServer
(rnd)
test/http2-request-never-settles.js:58
↓ 1 callers
Function
clampAndCoarsenConnectionTimingInfo
(connectionTimingInfo, defaultStartTime, crossOriginIsolatedCapability)
lib/web/fetch/util.js:322
↓ 1 callers
Function
cleanRequestHeaders
(headers, removeContent, unknownOrigin, stripHeaders, stripHeadersOnCrossOrigin)
lib/handler/redirect-handler.js:216
↓ 1 callers
Function
cleanup
()
benchmarks/benchmark.js:119
↓ 1 callers
Method
clearEvent
()
lib/web/eventsource/eventsource-stream.js:369
↓ 1 callers
Method
clearSnapshots
* Clears all snapshots * @returns {void}
lib/mock/snapshot-agent.js:313
↓ 1 callers
Function
clientFactory
(_origin, options)
test/proxy-agent.js:135
↓ 1 callers
Function
clonePolicyContainer
(policyContainer)
lib/web/fetch/util.js:375
↓ 1 callers
Function
close
()
test/parser-issues.js:29
↓ 1 callers
Function
close
(server)
test/utils/redirecting-servers.js:6
↓ 1 callers
Function
close
(server)
test/interceptors/interceptors-on-client.js:16
↓ 1 callers
Method
close
* Closes the agent, saving snapshots and cleaning up resources. * * @returns {Promise<void>}
lib/mock/snapshot-agent.js:356
↓ 1 callers
Method
close
* Closes the connection, if any, and sets the readyState attribute to * CLOSED.
lib/web/eventsource/eventsource.js:365
↓ 1 callers
Function
closeResources
(dispatchers, origins)
test/interceptors/origin-isolation.js:103
↓ 1 callers
Function
closeStream
(stream, code = NGHTTP2_REFUSED_STREAM)
lib/dispatcher/client-h2.js:208
↓ 1 callers
Function
closeWebSocket
(ws)
test/websocket/send.js:8
↓ 1 callers
Function
closeWebSocketServer
(server)
test/websocket/send.js:18
↓ 1 callers
Function
codeUnitStr
(char)
test/web-platform-tests/runner/utils.mjs:15
↓ 1 callers
Function
computeUrlWithMaybeSearchParameters
(requestInit)
lib/mock/mock-call-history.js:53
↓ 1 callers
Function
connect
(opts: buildConnector.Options, cb: buildConnector.Callback)
test/types/connector.test-d.ts:8
↓ 1 callers
Method
connect
* Send CONNECT command * @param {string} address - Target address (IP or domain) * @param {number} port - Target port
lib/core/socks5-client.js:275
↓ 1 callers
Function
connectOnce
({ hostname, port })
test/tls-session-reuse.js:225
↓ 1 callers
Function
connectionPoolingExample
()
docs/examples/socks5-proxy.js:99
↓ 1 callers
Method
consume
* Take n bytes from the buffered Buffers * @param {number} n * @returns {Buffer}
lib/web/websocket/receiver.js:312
↓ 1 callers
Method
consumeCurrentByte
()
lib/web/eventsource/eventsource-stream.js:393
↓ 1 callers
Function
consumeEnd
* @param {Consume} consume * @param {BufferEncoding} encoding * @returns {void}
lib/api/readable.js:544
↓ 1 callers
Method
consumeFragments
()
lib/web/websocket/receiver.js:369
↓ 1 callers
Function
consumeStart
* @param {Consume} consume * @returns {void}
lib/api/readable.js:437
↓ 1 callers
Function
corsCheck
()
lib/web/fetch/util.js:219
↓ 1 callers
Function
createCert
(cn, issuer, keyLength = 2048)
test/proxy-agent.js:19
↓ 1 callers
Function
createCert
(cn, issuer, keyLength = 2048)
test/socks5-proxy-agent.js:67
↓ 1 callers
Function
createConnectTimeoutError
(hostname, port, timeout)
lib/dispatcher/socks5-proxy-agent.js:29
↓ 1 callers
Function
createDecompressInterceptor
* Creates a decompression interceptor for HTTP responses * @param {DecompressHandlerOptions} [options] - Options for the interceptor * @returns {Fun
lib/interceptor/decompress.js:372
↓ 1 callers
Function
createDefaultHandler
()
test/snapshot-testing.js:70
↓ 1 callers
Function
createDnsServer
(ipv6Addr, ipv4Addr, cb)
test/node-test/autoselectfamily.js:38
↓ 1 callers
Function
createEchoHandler
()
test/snapshot-testing.js:85
↓ 1 callers
Function
createEnvHttpProxyAgentWithMocks
(plan = 1, opts = {})
test/env-http-proxy-agent.js:211
↓ 1 callers
Method
createFastTextFrame
* @param {Uint8Array} buffer
lib/web/websocket/frame.js:84
↓ 1 callers
Function
createFrame
(data, hint)
lib/web/websocket/sender.js:94
↓ 1 callers
Function
createInflate
* @param {zlib.ZlibOptions} [zlibOptions] * @returns {InflateStream}
lib/web/fetch/util.js:1288
↓ 1 callers
Function
createInheritableDOMException
()
lib/web/websocket/stream/websocketerror.js:8
↓ 1 callers
Function
createIterator
* @see https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object * @param {string} name name of the instance * @param {((target: any) => any)} k
lib/web/fetch/util.js:740
↓ 1 callers
Function
createLargeSnapshotFile
(path, size = 1000)
test/snapshot-testing.js:108
↓ 1 callers
Function
createMaliciousServer
* Creates a minimal WebSocket server that responds with a custom * server_max_window_bits value and sends a compressed frame.
test/websocket/permessage-deflate-windowbits.js:15
↓ 1 callers
Function
createMaxEventSizeExceededError
()
lib/web/eventsource/eventsource-stream.js:72
↓ 1 callers
Function
createMaxSizeLimiter
* Limits the output of one stage in a decompression chain. * @param {number} maxSize - Maximum output size in bytes * @returns {Transform}
lib/interceptor/decompress.js:31
↓ 1 callers
Function
createOrigin
test/interceptors/origin-isolation.js:62
↓ 1 callers
Function
createOrigins
()
test/interceptors/origin-isolation.js:51
↓ 1 callers
Function
createPotentialCORSRequest
(url, destination, corsAttributeState, sameOriginFallback)
lib/web/eventsource/util.js:28
↓ 1 callers
Function
createPrematureCloseError
()
lib/api/api-stream.js:15
↓ 1 callers
Function
createRawServer
(response)
test/prototype-headers.js:9
↓ 1 callers
Function
createReplyError
* Create error for SOCKS5 reply code * @param {number} replyCode - SOCKS5 reply code * @returns {Error} Appropriate error object
lib/core/socks5-utils.js:188
↓ 1 callers
Function
createScenario
(ErrorClass, defaultMessage, name, code)
test/errors.js:8
↓ 1 callers
Function
createSequentialHandler
(responses)
test/snapshot-testing.js:100
↓ 1 callers
Function
createSnapshotPath
(prefix = 'test-snapshots')
test/snapshot-testing.js:33
↓ 1 callers
Method
createSocks5Connection
* Create a SOCKS5 connection to the proxy
lib/dispatcher/socks5-proxy-agent.js:107
↓ 1 callers
Function
createStalledSocks5Proxy
({ stallOnConnect = false } = {})
test/socks5-proxy-agent.js:19
↓ 1 callers
Function
createTestServer
(handler)
test/snapshot-testing.js:37
↓ 1 callers
Function
createTrackedServer
(onConnection)
test/parser-issues.js:17
↓ 1 callers
Function
createWebSocketServer
()
docs/examples/proxy/websocket.js:13
↓ 1 callers
Function
crossOriginResourcePolicyCheck
()
lib/web/fetch/util.js:213
↓ 1 callers
Method
currentByte
()
lib/web/eventsource/eventsource-stream.js:389
↓ 1 callers
Function
currentChunkLength
(chunk)
benchmarks/core/body-chunk-byte-length.mjs:11
↓ 1 callers
Function
dataURLProcessor
@param {URL} dataURL
lib/web/fetch/data-url.js:21
↓ 1 callers
Function
defaultProtocolPort
(protocol)
lib/dispatcher/proxy-agent.js:24
↓ 1 callers
Function
deleteCachedValue
(store, cacheKey)
lib/interceptor/cache.js:169
↓ 1 callers
Function
deleteCachedValueIfNotModified
(statusCode, store, cacheKey)
lib/handler/cache-handler.js:479
↓ 1 callers
Function
deleteLocationTargets
(store, cacheKey, headerValue)
lib/handler/cache-handler.js:102
↓ 1 callers
Method
deleteRecords
(origin)
lib/interceptor/dns.js:378
↓ 1 callers
Method
destroy
(err, callback)
lib/dispatcher/dispatcher-base.js:114
↓ 1 callers
Method
destroy
* @param {Error} [err] * @returns {void}
lib/dispatcher/client-h1.js:1789
↓ 1 callers
Method
destroy
()
test/http2-invalid-session.js:31
↓ 1 callers
Method
destroy
()
test/socks5-client.js:90
← previous
next →
601–700 of 2,475, ranked by callers