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
↓ 307 callers
Method
close
(code?: number, reason?: string)
types/websocket.d.ts:39
↓ 263 callers
Method
listen
(port = 0)
test/fixtures/socks5-test-server.js:19
↓ 251 callers
Method
push
* @param {Buffer|null} chunk * @returns {boolean}
lib/api/readable.js:157
↓ 244 callers
Method
end
()
test/http2-late-data.js:48
↓ 219 callers
Method
on
()
test/socks5-client.js:84
↓ 203 callers
Method
ok
()
lib/web/fetch/response.js:190
↓ 198 callers
Function
createServer
()
test/connect-h2-alpn-order.js:17
↓ 173 callers
Method
request
()
test/http2-goaway.js:308
↓ 123 callers
Method
get
(key: CacheKey)
types/cache-interceptor.d.ts:111
↓ 115 callers
Method
toString
()
docs/examples/proxy/proxy.js:267
↓ 112 callers
Method
text
()
types/dispatcher.d.ts:247
↓ 102 callers
Function
setTimeout
* The setTimeout() method sets a timer which executes a function once the * timer expires. * @param {Function} callback A function to be execute
lib/util/timers.js:338
↓ 100 callers
Function
resolve
(value)
benchmarks/_util/runner.js:101
↓ 90 callers
Function
fetch
(input, init = undefined)
lib/web/fetch/index.js:159
↓ 86 callers
Method
write
(chunk)
test/socks5-client.js:86
↓ 85 callers
Method
on
* @param {string|symbol} event * @param {(...args: any[]) => void} listener * @returns {this}
lib/api/readable.js:111
↓ 84 callers
Method
brandCheck
* @description Performs a brand-check on {@param V} to ensure it is a * {@param cls} object.
types/webidl.d.ts:278
↓ 77 callers
Method
abort
(reason: Error)
types/dispatcher.d.ts:213
↓ 70 callers
Method
resume
()
types/dispatcher.d.ts:215
↓ 66 callers
Method
has
(cacheName: string)
types/cache.d.ts:5
↓ 64 callers
Method
destroy
()
lib/dispatcher/client-h1.js:446
↓ 63 callers
Method
destroy
()
test/pool.js:723
↓ 53 callers
Method
map
(callbackfn: (value: T, index: number) => U)
types/fetch.d.ts:69
↓ 50 callers
Function
closeServerAsPromise
(server)
test/utils/node-http.js:5
↓ 50 callers
Function
reject
(reason)
benchmarks/_util/runner.js:102
↓ 50 callers
Method
toString
()
lib/mock/mock-call-history.js:108
↓ 47 callers
Method
delete
(request: RequestInfo, options?: CacheQueryOptions)
types/cache.d.ts:22
↓ 44 callers
Function
setGlobalDispatcher
(agent)
lib/global.js:18
↓ 42 callers
Method
keys
(request?: RequestInfo, options?: CacheQueryOptions)
types/cache.d.ts:23
↓ 42 callers
Method
onResponseError
(controller: DispatchController, error: Error)
types/dispatcher.d.ts:224
↓ 40 callers
Function
request
()
test/pool.js:671
↓ 38 callers
Method
destroy
()
test/node-test/balanced-pool.js:70
↓ 37 callers
Method
argumentLengthCheck
(args: { length: number }, min: number, context: string)
types/webidl.d.ts:332
↓ 36 callers
Method
json
()
types/dispatcher.d.ts:246
↓ 31 callers
Function
bench
* @param {Record<string, BenchMarkHandler>} experiments * @param {{ minSamples?: number; maxSamples?: number }} [options] * @returns {Promise<{ name
benchmarks/_util/runner.js:61
↓ 31 callers
Function
clearTimeout
* The clearTimeout method cancels an instantiated Timer previously created * by calling setTimeout. * * @param {NodeJS.Timeout|FastTimer} tim
lib/util/timers.js:351
↓ 31 callers
Method
compose
(...args)
lib/dispatcher/dispatcher.js:17
↓ 31 callers
Method
pause
()
types/dispatcher.d.ts:214
↓ 31 callers
Function
run
()
docs/examples/proxy/index.js:12
↓ 31 callers
Method
set
()
test/fetch/formdata.js:330
↓ 29 callers
Method
addEventListener
( type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEv
types/websocket.d.ts:47
↓ 29 callers
Method
off
* @param {string|symbol} event * @param {(...args: any[]) => void} listener * @returns {this}
lib/api/readable.js:133
↓ 28 callers
Method
onResponseStart
(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, statusMessage?: string)
types/dispatcher.d.ts:221
↓ 27 callers
Method
forEach
(callbackfn: (value: T, index: number) => void)
types/fetch.d.ts:79
↓ 27 callers
Method
onResponseEnd
(controller: DispatchController, trailers: IncomingHttpHeaders)
types/dispatcher.d.ts:223
↓ 26 callers
Method
values
()
test/fetch/formdata.js:333
↓ 25 callers
Function
getGlobalDispatcher
()
lib/global.js:57
↓ 24 callers
Method
onRequestStart
(controller: DispatchController, context: any)
types/dispatcher.d.ts:219
↓ 24 callers
Method
onResponseData
(controller: DispatchController, chunk: Buffer)
types/dispatcher.d.ts:222
↓ 24 callers
Method
write
* @param {string|Uint8Array} chunk * @returns
lib/dispatcher/client-h1.js:1666
↓ 23 callers
Method
arrayBuffer
()
types/dispatcher.d.ts:242
↓ 23 callers
Method
connect
(origin: URL, targets: readonly Dispatcher[])
test/types/dispatcher.events.test-d.ts:7
↓ 23 callers
Method
set
(name, value)
lib/web/fetch/headers.js:563
↓ 22 callers
Method
add
(request: RequestInfo)
types/cache.d.ts:19
↓ 22 callers
Method
dump
* Dumps the response body by reading `limit` number of bytes. * @param {object} opts * @param {number} [opts.limit = 131072] Number of bytes to
lib/api/readable.js:266
↓ 22 callers
Method
entries
()
test/fetch/formdata.js:331
↓ 22 callers
Method
filter
(predicate: (value: T, index: number) => value is S)
types/fetch.d.ts:70
↓ 22 callers
Method
intercept
Intercepts any matching requests that use the same origin as this mock client.
types/mock-interceptor.d.ts:89
↓ 22 callers
Function
request
test/interceptors/cache.js:169
↓ 22 callers
Method
send
(data: string | ArrayBufferLike | Blob | ArrayBufferView)
types/websocket.d.ts:40
↓ 21 callers
Method
end
()
benchmarks/_util/runner.js:37
↓ 20 callers
Method
append
(key, value)
test/fetch/formdata.js:277
↓ 19 callers
Method
error
()
lib/web/fetch/response.js:35
↓ 19 callers
Method
formData
()
types/dispatcher.d.ts:245
↓ 19 callers
Method
match
(request: RequestInfo, options?: CacheQueryOptions)
types/cache.d.ts:17
↓ 19 callers
Method
push
@param {T} data
lib/dispatcher/fixed-queue.js:115
↓ 19 callers
Method
removeListener
* @param {string|symbol} event * @param {(...args: any[]) => void} listener * @returns {this}
lib/api/readable.js:149
↓ 19 callers
Method
reply
* Mock an undici request with a defined reply.
lib/mock/mock-interceptor.js:121
↓ 17 callers
Method
entries
()
lib/web/fetch/headers.js:318
↓ 17 callers
Method
setEncoding
* @param {BufferEncoding} encoding * @returns {this}
lib/api/readable.js:326
↓ 16 callers
Method
USVString
* @see https://webidl.spec.whatwg.org/#es-USVString
types/webidl.d.ts:117
↓ 16 callers
Method
dispatch
(req, handler)
test/pool.js:386
↓ 15 callers
Method
find
(predicate: (value: T, index: number) => value is S)
types/fetch.d.ts:82
↓ 15 callers
Function
sleep
test/promises.js:229
↓ 15 callers
Method
unref
()
test/http2-goaway.js:321
↓ 14 callers
Method
dispatch
(options, handler)
test/fetch/issue-2828.js:12
↓ 14 callers
Function
makeParallelRequests
(cb)
benchmarks/_util/index.js:5
↓ 13 callers
Method
onRequestUpgrade
(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, socket: Duplex)
types/dispatcher.d.ts:220
↓ 13 callers
Function
pipeline
(opts, handler)
lib/api/api-pipeline.js:255
↓ 13 callers
Method
some
(predicate: (value: T, index: number) => unknown)
types/fetch.d.ts:80
↓ 12 callers
Method
DOMString
* @see https://webidl.spec.whatwg.org/#es-DOMString
types/webidl.d.ts:107
↓ 12 callers
Method
cache
()
lib/web/fetch/request.js:693
↓ 12 callers
Method
disableNetConnect
()
lib/mock/mock-agent.js:121
↓ 12 callers
Function
dispatch
({ body })
lib/web/fetch/index.js:2193
↓ 11 callers
Method
append
(name, value)
lib/web/fetch/headers.js:460
↓ 11 callers
Method
contains
* @see https://fetch.spec.whatwg.org/#header-list-contains * @param {string} name * @param {boolean} isLowerCase
lib/web/fetch/headers.js:216
↓ 11 callers
Method
end
* @returns {void}
lib/dispatcher/client-h1.js:1731
↓ 11 callers
Function
failWebsocketConnection
* @param {import('./websocket').Handler} handler * @param {number} code * @param {string|undefined} reason * @param {unknown} cause * @returns {vo
lib/web/websocket/connection.js:306
↓ 11 callers
Method
markAsUncloneable
* Mark a value as uncloneable for Node.js.
types/webidl.d.ts:91
↓ 11 callers
Function
maybeWrapStream
(stream, type)
test/utils/async-iterators.js:14
↓ 11 callers
Method
removeEventListener
( type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | Event
types/websocket.d.ts:57
↓ 11 callers
Method
terminate
(reason)
lib/web/fetch/index.js:117
↓ 10 callers
Method
blob
()
types/dispatcher.d.ts:243
↓ 10 callers
Function
buildConnector
({ allowH2, preferH2, useH2c, maxCachedSessions, socketPath, timeout, session: customSession, ...opts })
lib/core/connect.js:62
↓ 10 callers
Method
clear
* The `clear` method cancels the timer, preventing it from executing. * * @returns {void} * @private
lib/util/timers.js:311
↓ 10 callers
Method
dictionaryConverter
* Converts a value, V, to a WebIDL dictionary types. Allows limiting which keys are * allowed, values allowed, optional and required keys. Auto con
types/webidl.d.ts:316
↓ 10 callers
Method
next
(...args: [] | [TNext])
types/fetch.d.ts:64
↓ 10 callers
Method
onBodySent
Invoked when a body chunk is sent to the server. May be invoked multiple times for chunked requests
types/dispatcher.d.ts:229
↓ 10 callers
Method
onRequestSent
Invoked after the request body is fully sent.
types/dispatcher.d.ts:231
↓ 10 callers
Method
read
()
test/client-timeout.js:27
next →
1–100 of 2,421, ranked by callers