Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/undici
/ functions
Functions
2,421 in github.com/nodejs/undici
⨍
Functions
2,421
◇
Types & classes
604
↓ 1 callers
Function
buildProxy
()
test/proxy.js:186
↓ 1 callers
Function
buildRequestHeaders
(reqHeaders)
lib/dispatcher/client-h2.js:827
↓ 1 callers
Function
buildSSLProxy
()
test/proxy-agent.js:1656
↓ 1 callers
Function
buildSSLServer
()
test/proxy-agent.js:1632
↓ 1 callers
Function
buildServer
()
test/env-http-proxy-agent.js:197
↓ 1 callers
Function
buildServer
()
test/proxy-agent.js:1625
↓ 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:248
↓ 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:492
↓ 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:661
↓ 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:54
↓ 1 callers
Function
clampAndCoarsenConnectionTimingInfo
(connectionTimingInfo, defaultStartTime, crossOriginIsolatedCapability)
lib/web/fetch/util.js:317
↓ 1 callers
Function
cleanRequestHeaders
(headers, removeContent, unknownOrigin, stripHeaders, stripHeadersOnCrossOrigin)
lib/handler/redirect-handler.js:199
↓ 1 callers
Function
cleanup
()
benchmarks/benchmark.js:119
↓ 1 callers
Method
clearEvent
()
lib/web/eventsource/eventsource-stream.js:343
↓ 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:370
↓ 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:356
↓ 1 callers
Function
closeStream
(stream, code = NGHTTP2_REFUSED_STREAM)
lib/dispatcher/client-h2.js:206
↓ 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:366
↓ 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:21
↓ 1 callers
Function
createDecompressInterceptor
* Creates a decompression interceptor for HTTP responses * @param {DecompressHandlerOptions} [options] - Options for the interceptor * @returns {Fun
lib/interceptor/decompress.js:270
↓ 1 callers
Function
createDefaultHandler
()
test/snapshot-testing.js:70
↓ 1 callers
Function
createDispatcher
(t, onStream)
test/http2-refused-stream.js:10
↓ 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:1283
↓ 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:735
↓ 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
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:78
↓ 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:362
↓ 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:23
↓ 1 callers
Function
deleteCachedValue
(store, cacheKey)
lib/interceptor/cache.js:138
↓ 1 callers
Function
deleteCachedValueIfNotModified
(statusCode, store, cacheKey)
lib/handler/cache-handler.js:465
↓ 1 callers
Function
deleteLocationTargets
(store, cacheKey, headerValue)
lib/handler/cache-handler.js:102
↓ 1 callers
Method
deleteRecords
(origin)
lib/interceptor/dns.js:377
↓ 1 callers
Method
destroy
(err, callback)
lib/dispatcher/dispatcher-base.js:102
↓ 1 callers
Method
destroy
* @param {Error} [err] * @returns {void}
lib/dispatcher/client-h1.js:1781
↓ 1 callers
Method
destroy
()
test/http2-invalid-session.js:31
↓ 1 callers
Method
destroy
()
test/socks5-client.js:90
↓ 1 callers
Function
detectRuntimeFeature
* @param {Feature} feature * @returns {boolean}
lib/util/runtime-features.js:36
↓ 1 callers
Function
detectRuntimeFeatureByNodeModule
* @param {NodeModuleName} moduleName * @returns {boolean}
lib/util/runtime-features.js:16
↓ 1 callers
Function
determineDeleteAt
* @param {number} baseTime * @param {number} cachedAt * @param {import('../../types/cache-interceptor.d.ts').default.CacheControlDirectives} cacheCo
lib/handler/cache-handler.js:712
↓ 1 callers
Function
determineRequestsReferrer
* Determine request’s Referrer * * @see https://w3c.github.io/webappsec-referrer-policy/#determine-requests-referrer
lib/web/fetch/util.js:381
↓ 1 callers
Function
determineStaleAt
* @param {import('../../types/cache-interceptor.d.ts').default.CacheOptions['type']} cacheType * @param {number} now * @param {number | undefined} a
lib/handler/cache-handler.js:613
↓ 1 callers
Method
discardLeadingBytes
(count)
lib/web/eventsource/eventsource-stream.js:440
↓ 1 callers
Method
disconnect
(origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError)
test/types/dispatcher.events.test-d.ts:8
↓ 1 callers
Function
discoverTestsToRun
(filter, expectation)
test/web-platform-tests/wpt-runner.mjs:480
↓ 1 callers
Function
dispatch
(_opts, handler)
test/interceptors/deduplicate.js:1174
↓ 1 callers
Method
dispatch
(options, handler)
test/mock-agent.js:3464
↓ 1 callers
Method
dispatch
(options, handler)
test/fetch/issue-2898-comment.js:10
↓ 1 callers
Function
dispatchAsyncIterableBody
(body, handler, controller, isAborted)
lib/mock/mock-utils.js:575
↓ 1 callers
Function
dispatchMockReply
* Replies to a request once the mock dispatch data is fully resolved
lib/mock/mock-utils.js:359
↓ 1 callers
Function
dispatchRequestBody
(body, handler, controller, isAborted)
lib/mock/mock-utils.js:535
↓ 1 callers
Function
doNotKillReqSocket
(bodyType)
test/http-req-destroy.js:10
↓ 1 callers
Function
drainingServer
()
test/http2-max-concurrent-streams-zero.js:42
← previous
next →
601–700 of 2,421, ranked by callers