MCPcopy Create free account

hub / github.com/nodejs/undici / functions

Functions2,421 in github.com/nodejs/undici

↓ 307 callersMethodclose
(code?: number, reason?: string)
types/websocket.d.ts:39
↓ 263 callersMethodlisten
(port = 0)
test/fixtures/socks5-test-server.js:19
↓ 251 callersMethodpush
* @param {Buffer|null} chunk * @returns {boolean}
lib/api/readable.js:157
↓ 244 callersMethodend
()
test/http2-late-data.js:48
↓ 219 callersMethodon
()
test/socks5-client.js:84
↓ 203 callersMethodok
()
lib/web/fetch/response.js:190
↓ 198 callersFunctioncreateServer
()
test/connect-h2-alpn-order.js:17
↓ 173 callersMethodrequest
()
test/http2-goaway.js:308
↓ 123 callersMethodget
(key: CacheKey)
types/cache-interceptor.d.ts:111
↓ 115 callersMethodtoString
()
docs/examples/proxy/proxy.js:267
↓ 112 callersMethodtext
()
types/dispatcher.d.ts:247
↓ 102 callersFunctionsetTimeout
* 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 callersFunctionresolve
(value)
benchmarks/_util/runner.js:101
↓ 90 callersFunctionfetch
(input, init = undefined)
lib/web/fetch/index.js:159
↓ 86 callersMethodwrite
(chunk)
test/socks5-client.js:86
↓ 85 callersMethodon
* @param {string|symbol} event * @param {(...args: any[]) => void} listener * @returns {this}
lib/api/readable.js:111
↓ 84 callersMethodbrandCheck
* @description Performs a brand-check on {@param V} to ensure it is a * {@param cls} object.
types/webidl.d.ts:278
↓ 77 callersMethodabort
(reason: Error)
types/dispatcher.d.ts:213
↓ 70 callersMethodresume
()
types/dispatcher.d.ts:215
↓ 66 callersMethodhas
(cacheName: string)
types/cache.d.ts:5
↓ 64 callersMethoddestroy
()
lib/dispatcher/client-h1.js:446
↓ 63 callersMethoddestroy
()
test/pool.js:723
↓ 53 callersMethodmap
(callbackfn: (value: T, index: number) => U)
types/fetch.d.ts:69
↓ 50 callersFunctioncloseServerAsPromise
(server)
test/utils/node-http.js:5
↓ 50 callersFunctionreject
(reason)
benchmarks/_util/runner.js:102
↓ 50 callersMethodtoString
()
lib/mock/mock-call-history.js:108
↓ 47 callersMethoddelete
(request: RequestInfo, options?: CacheQueryOptions)
types/cache.d.ts:22
↓ 44 callersFunctionsetGlobalDispatcher
(agent)
lib/global.js:18
↓ 42 callersMethodkeys
(request?: RequestInfo, options?: CacheQueryOptions)
types/cache.d.ts:23
↓ 42 callersMethodonResponseError
(controller: DispatchController, error: Error)
types/dispatcher.d.ts:224
↓ 40 callersFunctionrequest
()
test/pool.js:671
↓ 38 callersMethoddestroy
()
test/node-test/balanced-pool.js:70
↓ 37 callersMethodargumentLengthCheck
(args: { length: number }, min: number, context: string)
types/webidl.d.ts:332
↓ 36 callersMethodjson
()
types/dispatcher.d.ts:246
↓ 31 callersFunctionbench
* @param {Record<string, BenchMarkHandler>} experiments * @param {{ minSamples?: number; maxSamples?: number }} [options] * @returns {Promise<{ name
benchmarks/_util/runner.js:61
↓ 31 callersFunctionclearTimeout
* The clearTimeout method cancels an instantiated Timer previously created * by calling setTimeout. * * @param {NodeJS.Timeout|FastTimer} tim
lib/util/timers.js:351
↓ 31 callersMethodcompose
(...args)
lib/dispatcher/dispatcher.js:17
↓ 31 callersMethodpause
()
types/dispatcher.d.ts:214
↓ 31 callersFunctionrun
()
docs/examples/proxy/index.js:12
↓ 31 callersMethodset
()
test/fetch/formdata.js:330
↓ 29 callersMethodaddEventListener
( type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEv
types/websocket.d.ts:47
↓ 29 callersMethodoff
* @param {string|symbol} event * @param {(...args: any[]) => void} listener * @returns {this}
lib/api/readable.js:133
↓ 28 callersMethodonResponseStart
(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, statusMessage?: string)
types/dispatcher.d.ts:221
↓ 27 callersMethodforEach
(callbackfn: (value: T, index: number) => void)
types/fetch.d.ts:79
↓ 27 callersMethodonResponseEnd
(controller: DispatchController, trailers: IncomingHttpHeaders)
types/dispatcher.d.ts:223
↓ 26 callersMethodvalues
()
test/fetch/formdata.js:333
↓ 25 callersFunctiongetGlobalDispatcher
()
lib/global.js:57
↓ 24 callersMethodonRequestStart
(controller: DispatchController, context: any)
types/dispatcher.d.ts:219
↓ 24 callersMethodonResponseData
(controller: DispatchController, chunk: Buffer)
types/dispatcher.d.ts:222
↓ 24 callersMethodwrite
* @param {string|Uint8Array} chunk * @returns
lib/dispatcher/client-h1.js:1666
↓ 23 callersMethodarrayBuffer
()
types/dispatcher.d.ts:242
↓ 23 callersMethodconnect
(origin: URL, targets: readonly Dispatcher[])
test/types/dispatcher.events.test-d.ts:7
↓ 23 callersMethodset
(name, value)
lib/web/fetch/headers.js:563
↓ 22 callersMethodadd
(request: RequestInfo)
types/cache.d.ts:19
↓ 22 callersMethoddump
* 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 callersMethodentries
()
test/fetch/formdata.js:331
↓ 22 callersMethodfilter
(predicate: (value: T, index: number) => value is S)
types/fetch.d.ts:70
↓ 22 callersMethodintercept
Intercepts any matching requests that use the same origin as this mock client.
types/mock-interceptor.d.ts:89
↓ 22 callersFunctionrequest
test/interceptors/cache.js:169
↓ 22 callersMethodsend
(data: string | ArrayBufferLike | Blob | ArrayBufferView)
types/websocket.d.ts:40
↓ 21 callersMethodend
()
benchmarks/_util/runner.js:37
↓ 20 callersMethodappend
(key, value)
test/fetch/formdata.js:277
↓ 19 callersMethoderror
()
lib/web/fetch/response.js:35
↓ 19 callersMethodformData
()
types/dispatcher.d.ts:245
↓ 19 callersMethodmatch
(request: RequestInfo, options?: CacheQueryOptions)
types/cache.d.ts:17
↓ 19 callersMethodpush
@param {T} data
lib/dispatcher/fixed-queue.js:115
↓ 19 callersMethodremoveListener
* @param {string|symbol} event * @param {(...args: any[]) => void} listener * @returns {this}
lib/api/readable.js:149
↓ 19 callersMethodreply
* Mock an undici request with a defined reply.
lib/mock/mock-interceptor.js:121
↓ 17 callersMethodentries
()
lib/web/fetch/headers.js:318
↓ 17 callersMethodsetEncoding
* @param {BufferEncoding} encoding * @returns {this}
lib/api/readable.js:326
↓ 16 callersMethodUSVString
* @see https://webidl.spec.whatwg.org/#es-USVString
types/webidl.d.ts:117
↓ 16 callersMethoddispatch
(req, handler)
test/pool.js:386
↓ 15 callersMethodfind
(predicate: (value: T, index: number) => value is S)
types/fetch.d.ts:82
↓ 15 callersFunctionsleep
test/promises.js:229
↓ 15 callersMethodunref
()
test/http2-goaway.js:321
↓ 14 callersMethoddispatch
(options, handler)
test/fetch/issue-2828.js:12
↓ 14 callersFunctionmakeParallelRequests
(cb)
benchmarks/_util/index.js:5
↓ 13 callersMethodonRequestUpgrade
(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, socket: Duplex)
types/dispatcher.d.ts:220
↓ 13 callersFunctionpipeline
(opts, handler)
lib/api/api-pipeline.js:255
↓ 13 callersMethodsome
(predicate: (value: T, index: number) => unknown)
types/fetch.d.ts:80
↓ 12 callersMethodDOMString
* @see https://webidl.spec.whatwg.org/#es-DOMString
types/webidl.d.ts:107
↓ 12 callersMethodcache
()
lib/web/fetch/request.js:693
↓ 12 callersMethoddisableNetConnect
()
lib/mock/mock-agent.js:121
↓ 12 callersFunctiondispatch
({ body })
lib/web/fetch/index.js:2193
↓ 11 callersMethodappend
(name, value)
lib/web/fetch/headers.js:460
↓ 11 callersMethodcontains
* @see https://fetch.spec.whatwg.org/#header-list-contains * @param {string} name * @param {boolean} isLowerCase
lib/web/fetch/headers.js:216
↓ 11 callersMethodend
* @returns {void}
lib/dispatcher/client-h1.js:1731
↓ 11 callersFunctionfailWebsocketConnection
* @param {import('./websocket').Handler} handler * @param {number} code * @param {string|undefined} reason * @param {unknown} cause * @returns {vo
lib/web/websocket/connection.js:306
↓ 11 callersMethodmarkAsUncloneable
* Mark a value as uncloneable for Node.js.
types/webidl.d.ts:91
↓ 11 callersFunctionmaybeWrapStream
(stream, type)
test/utils/async-iterators.js:14
↓ 11 callersMethodremoveEventListener
( type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | Event
types/websocket.d.ts:57
↓ 11 callersMethodterminate
(reason)
lib/web/fetch/index.js:117
↓ 10 callersMethodblob
()
types/dispatcher.d.ts:243
↓ 10 callersFunctionbuildConnector
({ allowH2, preferH2, useH2c, maxCachedSessions, socketPath, timeout, session: customSession, ...opts })
lib/core/connect.js:62
↓ 10 callersMethodclear
* The `clear` method cancels the timer, preventing it from executing. * * @returns {void} * @private
lib/util/timers.js:311
↓ 10 callersMethoddictionaryConverter
* 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 callersMethodnext
(...args: [] | [TNext])
types/fetch.d.ts:64
↓ 10 callersMethodonBodySent
Invoked when a body chunk is sent to the server. May be invoked multiple times for chunked requests
types/dispatcher.d.ts:229
↓ 10 callersMethodonRequestSent
Invoked after the request body is fully sent.
types/dispatcher.d.ts:231
↓ 10 callersMethodread
()
test/client-timeout.js:27
next →1–100 of 2,421, ranked by callers