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
↓ 2 callers
Method
stop
()
test/node-test/balanced-pool.js:474
↓ 2 callers
Function
stringPercentDecode
@param {string} input
lib/web/fetch/data-url.js:142
↓ 2 callers
Function
stringify
* @see https://www.rfc-editor.org/rfc/rfc6265#section-4.1.1 * @param {import('./index').Cookie} cookie
lib/web/cookies/util.js:273
↓ 2 callers
Function
successSteps
(data)
lib/web/fetch/body.js:481
↓ 2 callers
Function
terminateProcess
(proc, exitPromise)
test/web-platform-tests/wpt-runner.mjs:62
↓ 2 callers
Function
throwProxyAuthError
()
lib/dispatcher/proxy-agent.js:391
↓ 2 callers
Method
toSortedArray
()
lib/web/fetch/headers.js:353
↓ 2 callers
Method
trackHeader
* @param {number} len
lib/dispatcher/client-h1.js:553
↓ 2 callers
Function
urlIsLocal
* @see https://fetch.spec.whatwg.org/#is-local * @param {URL} url * @returns {boolean}
lib/web/fetch/util.js:1031
↓ 2 callers
Function
utf8DecodeBytes
* @see https://encoding.spec.whatwg.org/#utf-8-decode * @param {Uint8Array} buffer
lib/encoding/index.js:9
↓ 2 callers
Function
validateCloseCodeAndReason
(code, reason)
lib/web/websocket/util.js:288
↓ 2 callers
Function
validateCookiePath
* path-value = <any CHAR except CTLs or ";"> * @param {string} path
lib/web/cookies/util.js:102
↓ 2 callers
Method
validateReplyParameters
(replyParameters)
lib/mock/mock-interceptor.js:109
↓ 2 callers
Function
withHostHeader
(host, headers)
lib/interceptor/dns.js:87
↓ 2 callers
Function
writeBody
* @param {import('node:stream').Writable} stream * @param {Buffer[]} body
test/cache-interceptor/cache-store-test-utils.js:396
↓ 1 callers
Method
#abort
(reason)
lib/interceptor/dump.js:24
↓ 1 callers
Method
#asyncDispatch
* Async version of dispatch for when we need to load snapshots first
lib/mock/snapshot-agent.js:126
↓ 1 callers
Method
#bufferWaitingChunk
* @param {WaitingHandler} waitingHandler * @param {Buffer} chunk
lib/handler/deduplication-handler.js:394
↓ 1 callers
Method
#cancel
(reason)
lib/web/websocket/stream/websocketstream.js:445
↓ 1 callers
Method
#createDecompressionChain
* Creates a chain of decompressors for multiple content encodings * * @param {string} encodings - Comma-separated list of content encodings *
lib/interceptor/decompress.js:108
↓ 1 callers
Method
#createWaitingHandler
* @param {DispatchHandler} handler * @returns {WaitingHandler}
lib/handler/deduplication-handler.js:314
↓ 1 callers
Method
#detectRuntimeFeature
* @param {Feature} feature * @returns {boolean}
lib/util/runtime-features.js:83
↓ 1 callers
Method
#getProxyAgentForUrl
(url)
lib/dispatcher/env-http-proxy-agent.js:65
↓ 1 callers
Method
#getUrl
* @param {import('../../types/proxy-agent').ProxyAgent.Options | string | URL} opts * @returns {URL}
lib/dispatcher/proxy-agent.js:300
↓ 1 callers
Method
#onConnectionEstablished
* @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol
lib/web/websocket/websocket.js:484
↓ 1 callers
Method
#onConnectionEstablished
@type {import('../websocket').Handler['onConnectionEstablished']}
lib/web/websocket/stream/websocketstream.js:258
↓ 1 callers
Method
#onMessage
(type, data)
lib/web/websocket/websocket.js:548
↓ 1 callers
Method
#onMessage
@type {import('../websocket').Handler['onMessage']}
lib/web/websocket/stream/websocketstream.js:324
↓ 1 callers
Method
#onParserDrain
()
lib/web/websocket/websocket.js:589
↓ 1 callers
Method
#onSocketClose
* @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol * @see https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.4
lib/web/websocket/websocket.js:597
↓ 1 callers
Method
#onSocketClose
@type {import('../websocket').Handler['onSocketClose']}
lib/web/websocket/stream/websocketstream.js:356
↓ 1 callers
Method
#prune
()
lib/cache/sqlite-cache-store.js:354
↓ 1 callers
Method
#recordAndReplay
* Records a real request and replays the response
lib/mock/snapshot-agent.js:134
↓ 1 callers
Method
#replaySnapshot
* Replays a recorded response * * @param {Object} snapshot - The recorded snapshot to replay. * @param {Object} handler - The handler to call
lib/mock/snapshot-agent.js:196
↓ 1 callers
Method
#requestMatchesCachedItem
* @see https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm * @param {any} requestQuery * @param {any} request * @param
lib/web/cache/cache.js:699
↓ 1 callers
Method
#run
()
lib/web/websocket/sender.js:76
↓ 1 callers
Method
#setupMockInterceptors
* Sets up MockAgent interceptors based on recorded snapshots. * * This method creates MockAgent interceptors for each recorded snapshot, * al
lib/mock/snapshot-agent.js:270
↓ 1 callers
Method
#setupMultipleDecompressors
* Sets up event handling for multiple chained decompressors using pipeline * @param {Controller} controller - The controller to handle events *
lib/interceptor/decompress.js:229
↓ 1 callers
Method
#setupSingleDecompressor
* Sets up event handling for a single decompressor * @param {Controller} controller - The controller to handle events * @returns {void}
lib/interceptor/decompress.js:209
↓ 1 callers
Method
#shouldProxy
(hostname, port)
lib/dispatcher/env-http-proxy-agent.js:89
↓ 1 callers
Method
#shouldSkipDecompression
* Determines if decompression should be skipped based on encoding and status code * @param {string} contentEncoding - Content-Encoding header value
lib/interceptor/decompress.js:94
↓ 1 callers
Method
#startAutoFlush
* Starts the auto-flush timer * @returns {void}
lib/mock/snapshot-recorder.js:561
↓ 1 callers
Method
#stopAutoFlush
* Stops the auto-flush timer * @returns {void}
lib/mock/snapshot-recorder.js:569
↓ 1 callers
Method
#validatePayloadLength
()
lib/web/websocket/receiver.js:78
↓ 1 callers
Method
#write
(chunk)
lib/web/websocket/stream/websocketstream.js:200
↓ 1 callers
Method
AllowSharedBufferSource
* @see https://webidl.spec.whatwg.org/#AllowSharedBufferSource
types/webidl.d.ts:213
↓ 1 callers
Method
ConvertToInt
* @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
types/webidl.d.ts:69
↓ 1 callers
Method
DataView
* @see https://webidl.spec.whatwg.org/#es-buffer-source-types
types/webidl.d.ts:183
↓ 1 callers
Method
HasFlag
(flag: number, attributes: number)
types/webidl.d.ts:95
↓ 1 callers
Method
IntegerPart
* @see https://webidl.spec.whatwg.org/#abstract-opdef-integerpart
types/webidl.d.ts:79
↓ 1 callers
Method
IsResizableArrayBuffer
(V: ArrayBufferLike)
types/webidl.d.ts:93
↓ 1 callers
Method
RequestInit
* @see https://fetch.spec.whatwg.org/#requestinit
types/webidl.d.ts:234
↓ 1 callers
Function
TAOCheck
()
lib/web/fetch/util.js:225
↓ 1 callers
Method
TypeValueToString
(o: unknown)
types/webidl.d.ts:54
↓ 1 callers
Method
TypedArray
* @see https://webidl.spec.whatwg.org/#es-buffer-source-types
types/webidl.d.ts:172
↓ 1 callers
Method
WebSocketStreamWrite
(V: unknown)
types/webidl.d.ts:241
↓ 1 callers
Method
_read
()
lib/api/api-pipeline.js:33
↓ 1 callers
Function
_resume
(client, sync)
lib/dispatcher/client.js:660
↓ 1 callers
Method
_shouldHangupOnClient
()
test/node-test/balanced-pool.js:417
↓ 1 callers
Method
_shouldStopServer
()
test/node-test/balanced-pool.js:428
↓ 1 callers
Function
abort
(reason)
lib/web/fetch/index.js:2232
↓ 1 callers
Function
abort
()
test/readable.js:13
↓ 1 callers
Function
abortFetch
()
test/fetch/issue-5566.js:41
↓ 1 callers
Function
activeConnectionController
()
test/retry-handler-controller-proxy.js:22
↓ 1 callers
Method
addAll
(requests: RequestInfo[])
types/cache.d.ts:20
↓ 1 callers
Method
addAll
(requests)
lib/web/cache/cache.js:89
↓ 1 callers
Method
addWaitingHandler
* Add a waiting handler that will receive response events. * Returns false if deduplication can no longer safely attach this handler. * * @pa
lib/handler/deduplication-handler.js:106
↓ 1 callers
Method
append
(name, value, filename = undefined)
lib/web/fetch/formdata.js:30
↓ 1 callers
Function
appendConnectionHeaderTokens
(headersToRemove, connectionHeader)
lib/handler/cache-handler.js:50
↓ 1 callers
Function
appendFetchMetadata
(httpRequest)
lib/web/fetch/util.js:231
↓ 1 callers
Function
appendFetchStackTrace
(err, filename)
index.js:132
↓ 1 callers
Function
appendFetchStackTrace
(err, filename)
index-fetch.js:11
↓ 1 callers
Function
appendHeader
(headers, key, val)
lib/util/cache.js:207
↓ 1 callers
Function
appendRequestOriginHeader
(request)
lib/web/fetch/util.js:261
↓ 1 callers
Function
arrayIncludes
(array, value)
lib/interceptor/cache.js:45
↓ 1 callers
Function
asctime
(date)
test/utils/date.js:283
↓ 1 callers
Function
assertCacheMethods
* @param {unknown} methods * @returns {asserts methods is import('../../types/cache-interceptor.d.ts').default.CacheMethods[]}
lib/util/cache.js:698
↓ 1 callers
Function
assertCacheOrigins
* @param {(string | RegExp)[] | undefined} origins * @param {string} name
lib/interceptor/cache.js:26
↓ 1 callers
Function
assertCacheStore
* @param {unknown} store * @returns {asserts store is import('../../types/cache-interceptor.d.ts').default.CacheStore}
lib/util/cache.js:683
↓ 1 callers
Function
assertConnectTimeout
(dispatcher, t)
test/connect-timeout.js:38
↓ 1 callers
Function
assertConsistent
(t, mockCallHistoryLog)
test/mock-call-history-log.js:8
↓ 1 callers
Function
assertCredentialsRejected
(t, url)
test/fetch/issue-4897.js:25
↓ 1 callers
Function
assertEmitWarningCalledAndReset
()
test/no-strict-content-length.js:19
↓ 1 callers
Method
assertNoPendingInterceptors
({ pendingInterceptorsFormatter = new PendingInterceptorsFormatter() } = {})
lib/mock/mock-agent.js:229
↓ 1 callers
Function
assertPath
(t, url, expectedPath)
test/fetch/issue-4897.js:16
↓ 1 callers
Function
assertRequestHandler
* Asserts that the handler object is a request handler. * * @param {object} handler * @param {string} method * @param {string} [upgrade] * @retur
lib/core/util.js:567
↓ 1 callers
Function
assertRequestSucceeds
(dispatcher)
test/issue-4780.js:46
↓ 1 callers
Function
authenticatedSocks5Example
()
docs/examples/socks5-proxy.js:29
↓ 1 callers
Function
b64decode
(input)
test/busboy/test-parser.js:28
↓ 1 callers
Function
basicSnapshotExample
* Example: Basic Snapshot Testing * * This example demonstrates how to use SnapshotAgent to record API * interactions and replay them in tests for
docs/examples/snapshot-testing.js:14
↓ 1 callers
Function
basicSocks5Example
()
docs/examples/socks5-proxy.js:6
↓ 1 callers
Function
body
()
test/readable.js:317
↓ 1 callers
Function
body
()
test/mock-agent.js:339
↓ 1 callers
Function
bodyLength
* @param {Blob|Buffer|import ('stream').Stream} body * @returns {number|null}
lib/core/util.js:332
↓ 1 callers
Function
bodyMixinMethods
(instance, getInternalState)
lib/web/fetch/body.js:296
↓ 1 callers
Method
boolean
* @see https://webidl.spec.whatwg.org/#es-boolean
types/webidl.d.ts:122
↓ 1 callers
Method
brandCheckMultiple
(list: Interfaces)
types/webidl.d.ts:280
↓ 1 callers
Function
bufferStartsWith
* Checks if {@param buffer} starts with {@param start} * @param {Buffer} buffer * @param {Buffer} start * @param {{ position: number }} position
lib/web/fetch/formdata-parser.js:513
↓ 1 callers
Function
buildAddressBuffer
* Build a SOCKS5 address buffer * @param {number} type - Address type (1=IPv4, 3=Domain, 4=IPv6) * @param {Buffer} addressBuffer - The address data
lib/core/socks5-utils.js:99
↓ 1 callers
Function
buildAndValidateFilterCallsOptions
(options = {})
lib/mock/mock-call-history.js:20
← previous
next →
501–600 of 2,475, ranked by callers