MCPcopy Create free account

hub / github.com/nodejs/undici / functions

Functions2,421 in github.com/nodejs/undici

↓ 10 callersMethodrefresh
* Sets the timer's start time to the current time, and reschedules the timer * to call its callback at the previously specified duration adjusted t
lib/util/timers.js:286
↓ 10 callersMethodshift
@returns {T|null}
lib/dispatcher/fixed-queue.js:125
↓ 9 callersMethodRequestInfo
* @see https://fetch.spec.whatwg.org/#requestinfo
types/webidl.d.ts:229
↓ 9 callersMethodclone
()
test/types/fetch.test-d.ts:192
↓ 9 callersMethodevery
(predicate: (value: T, index: number) => unknown)
types/fetch.d.ts:81
↓ 9 callersMethodexception
* @description Instantiate an error
types/webidl.d.ts:18
↓ 9 callersMethodgetSetCookie
()
lib/web/fetch/headers.js:611
↓ 9 callersFunctionmakeNetworkError
(reason)
lib/web/fetch/response.js:383
↓ 9 callersMethodreduce
(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T)
types/fetch.d.ts:75
↓ 9 callersFunctionstartServer
(handler)
test/utils/redirecting-servers.js:15
↓ 8 callersMethoddispatch
(opts, handler)
lib/mock/mock-agent.js:72
↓ 8 callersFunctionremoveSignal
(self)
lib/api/abort-signal.js:41
↓ 8 callersFunctionrequestCurrentURL
@returns {URL}
lib/web/fetch/util.js:87
↓ 8 callersFunctionurlIsHttpHttpsScheme
* @see https://fetch.spec.whatwg.org/#http-scheme * @param {URL} url
lib/web/fetch/util.js:1059
↓ 8 callersFunctionwrapWithAsyncIterable
(asyncIterable, indefinite = false)
test/utils/async-iterators.js:3
↓ 7 callersMethodEventHandlerNonNull
* @see https://html.spec.whatwg.org/multipage/webappapis.html#eventhandlernonnull
types/webidl.d.ts:239
↓ 7 callersFunctionURLSerializer
* @param {URL} url * @param {boolean} excludeFragment
lib/web/fetch/data-url.js:123
↓ 7 callersMethodcreateFrame
(opcode)
lib/web/websocket/frame.js:31
↓ 7 callersFunctioncreateRequestHash
* Creates a hash key for request matching * Properly orders headers to avoid conflicts and uses crypto hashing when available * * @param {SnapshotF
lib/mock/snapshot-recorder.js:214
↓ 7 callersFunctionextractBody
* Extract a body with type from a byte sequence or BodyInit object * * @param {import('../../../types').BodyInit} object - The BodyInit object to ex
lib/web/fetch/body.js:40
↓ 7 callersFunctionformatRequestKey
* Formats a request for consistent snapshot storage * Caches normalized headers to avoid repeated processing * * @param {SnapshotRequestOptions} op
lib/mock/snapshot-recorder.js:124
↓ 7 callersFunctionisCancelled
(fetchParams)
lib/web/fetch/util.js:712
↓ 7 callersFunctionmakeParallelRequests
(cb)
benchmarks/benchmark-https.js:135
↓ 7 callersFunctionmakeResponse
(init)
lib/web/fetch/response.js:364
↓ 7 callersMethodredirect
()
lib/web/fetch/request.js:704
↓ 7 callersMethodretry
()
lib/handler/retry-handler.js:411
↓ 7 callersMethodsequenceConverter
* @see https://webidl.spec.whatwg.org/#es-sequence * @description Convert a value, V, to a WebIDL sequence type.
types/webidl.d.ts:286
↓ 7 callersMethodtimes
* Allow one to define a reply for a set amount of matching requests.
lib/mock/mock-interceptor.js:52
↓ 6 callersMethodBufferSource
* @see https://webidl.spec.whatwg.org/#BufferSource
types/webidl.d.ts:203
↓ 6 callersMethodByteString
* @see https://webidl.spec.whatwg.org/#es-ByteString
types/webidl.d.ts:112
↓ 6 callersMethodMakeTypeAssertion
(I: I)
types/webidl.d.ts:86
↓ 6 callersFunctionclearHttp2IdleTimeout
(session)
lib/dispatcher/client-h2.js:488
↓ 6 callersFunctionconsumeBody
* @see https://fetch.spec.whatwg.org/#concept-body-consume-body * @param {any} object internal state * @param {(value: unknown) => unknown} convertB
lib/web/fetch/body.js:456
↓ 6 callersMethodcork
()
test/http2-late-data.js:49
↓ 6 callersMethodcreateWriteStream
(key: CacheKey, val: CacheValue)
types/cache-interceptor.d.ts:113
↓ 6 callersMethoddelay
* Delay a reply by a set amount in ms.
lib/mock/mock-interceptor.js:32
↓ 6 callersFunctionfromInnerResponse
* @see https://fetch.spec.whatwg.org/#response-create * @param {any} innerResponse * @param {'request' | 'immutable' | 'request-no-cors' | 'response
lib/web/fetch/response.js:549
↓ 6 callersFunctionisAborted
(fetchParams)
lib/web/fetch/util.js:708
↓ 6 callersFunctionisValidHTTPToken
* @param {string} characters * @returns {boolean}
lib/core/util.js:752
↓ 6 callersMethodlookup
* @param {Uint8Array} key * @returns {any}
lib/core/tree.js:145
↓ 6 callersFunctionmakeParallelRequests
(cb)
benchmarks/benchmark-http2.js:119
↓ 6 callersFunctionparseHttpDate
* @see https://www.rfc-editor.org/rfc/rfc9110.html#name-date-time-formats * * @param {string} date * @returns {Date | undefined}
lib/util/date.js:9
↓ 6 callersMethodpersist
* For a defined reply, never mark as consumed.
lib/mock/mock-interceptor.js:44
↓ 6 callersMethodrun
* Runs whenever a new chunk is received. * Callback is called whenever there are no more chunks buffering, * or not enough bytes are buffered to
lib/web/websocket/receiver.js:96
↓ 6 callersMethodsetTimeout
(delay, type)
lib/dispatcher/client-h1.js:246
↓ 6 callersMethodsetTimeout
()
test/http2-late-data.js:43
↓ 6 callersMethoduncork
()
test/http2-late-data.js:50
↓ 5 callersFunctionabort
(err, resetPendingIdx = false)
lib/dispatcher/client-h2.js:1040
↓ 5 callersFunctionassertCacheKey
* @param {any} key
lib/util/cache.js:260
↓ 5 callersFunctionbodyUnusable
* @see https://fetch.spec.whatwg.org/#body-unusable * @param {any} object internal state
lib/web/fetch/body.js:508
↓ 5 callersMethodbytes
()
types/dispatcher.d.ts:244
↓ 5 callersFunctioncloseWebSocketConnection
* @see https://whatpr.org/websockets/48.html#close-the-websocket * @param {import('./websocket').Handler} object * @param {number} [code=null] * @p
lib/web/websocket/connection.js:227
↓ 5 callersFunctioncoarsenedSharedCurrentTime
(crossOriginIsolatedCapability)
lib/web/fetch/util.js:340
↓ 5 callersFunctioncollectASequenceOfCodePoints
* @param {(char: string) => boolean} condition * @param {string} input * @param {{ position: number }} position * @returns {string} * * @see http
lib/web/infra/index.js:14
↓ 5 callersFunctioncollectASequenceOfCodePointsFast
* A faster collectASequenceOfCodePoints that only works when comparing a single character. * @param {string} char * @param {string} input * @param
lib/web/infra/index.js:41
↓ 5 callersFunctionconnectH2
(client, socket)
lib/dispatcher/client-h2.js:247
↓ 5 callersFunctionconsume
* @template {ConsumeType} T * @param {BodyReadable} stream * @param {T} type * @returns {Promise<ConsumeReturnType<T>>}
lib/api/readable.js:391
↓ 5 callersMethodconversionFailed
* @description Instantiate an error when conversion from one type to another has failed
types/webidl.d.ts:22
↓ 5 callersFunctiondetachRequestFromStream
(request)
lib/dispatcher/client-h2.js:135
↓ 5 callersFunctiongetFieldValues
* @see https://github.com/chromium/chromium/blob/694d20d134cb553d8d89e5500b9148012b1ba299/content/browser/cache_storage/cache_storage_cache.cc#L260-L2
lib/web/cache/util.js:26
↓ 5 callersMethodinvalidArgument
* @description Throw an error when an invalid argument is provided
types/webidl.d.ts:30
↓ 5 callersMethodisEmpty
@returns {boolean}
lib/dispatcher/fixed-queue.js:110
↓ 5 callersFunctionisEstablished
* @param {number} readyState * @returns {boolean}
lib/web/websocket/util.js:22
↓ 5 callersMethodloadSnapshots
* Loads snapshots from file * * @param {string} [filePath] - Optional file path to load snapshots from. * @returns {Promise<void>} - Resolves
lib/mock/snapshot-agent.js:237
↓ 5 callersFunctionmatchValue
(match, value)
lib/mock/mock-utils.js:22
↓ 5 callersMethodnullableConverter
* @see https://webidl.spec.whatwg.org/#idl-nullable-type * @description allows a type, V, to be null
types/webidl.d.ts:328
↓ 5 callersFunctionparseHeaders
* @param {(Buffer | string)[]} headers * @param {Record<string, string | string[]>} [obj] * @returns {Record<string, string | string[]>}
lib/core/util.js:425
↓ 5 callersFunctionsameOrigin
* @link {https://html.spec.whatwg.org/multipage/origin.html#same-origin} * @param {URL} A * @param {URL} B
lib/web/fetch/util.js:692
↓ 5 callersMethodsaveSnapshots
* Saves snapshots to file * * @param {string} [filePath] - Optional file path to save snapshots to. * @returns {Promise<void>} - Resolves whe
lib/mock/snapshot-agent.js:253
↓ 5 callersMethodsize
()
lib/interceptor/dns.js:115
↓ 4 callersMethod#pruneDoneWaitingHandlers
()
lib/handler/deduplication-handler.js:455
↓ 4 callersFunctionaddAbortListener
(signal, listener)
lib/core/util.js:705
↓ 4 callersMethodaddEventListener
( type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | A
types/eventsource.d.ts:28
↓ 4 callersFunctionaddSignal
(self, signal)
lib/api/abort-signal.js:18
↓ 4 callersMethodcalls
()
lib/mock/mock-call-history.js:130
↓ 4 callersMethodcleanMocks
Clean up all the prepared mocks.
types/mock-interceptor.d.ts:91
↓ 4 callersFunctioncreateHeaderFilters
* Creates cached header sets for performance * * @param {import('./snapshot-recorder').SnapshotRecorderMatchOptions} matchOptions - Matching options
lib/mock/snapshot-utils.js:19
↓ 4 callersFunctioncreateReadable
(data)
test/utils/stream.js:5
↓ 4 callersMethoddecompress
* Decompress a compressed payload. * @param {Buffer} chunk Compressed data * @param {boolean} fin Final fragment flag * @param {Function} cal
lib/web/websocket/permessage-deflate.js:35
↓ 4 callersFunctiondeleteMockDispatch
(mockDispatches, key)
lib/mock/mock-utils.js:221
↓ 4 callersMethoddestroy
* Destroy the client and underlying socket
lib/core/socks5-client.js:141
↓ 4 callersMethoddispatch
()
lib/dispatcher/dispatcher.js:5
↓ 4 callersMethoddispatch
()
test/node-test/balanced-pool.js:61
↓ 4 callersMethodenableNetConnect
(matcher)
lib/mock/mock-agent.js:107
↓ 4 callersFunctionfailUpgradeStream
(state, err)
lib/dispatcher/client-h2.js:889
↓ 4 callersFunctionfetching
({ request, processRequestBodyChunkLength, processRequestEndOfBody, processResponse, processResponse
lib/web/fetch/index.js:406
↓ 4 callersFunctionfn
(origin)
test/mock-utils.js:375
↓ 4 callersMethodgetRecorder
* Gets the snapshot recorder * @return {SnapshotRecorder} - The snapshot recorder instance
lib/mock/snapshot-agent.js:297
↓ 4 callersFunctiongetResponse
(body)
lib/mock/mock-utils.js:292
↓ 4 callersMethodgetSnapshots
* Gets all recorded snapshots * @return {Array<SnapshotEntry>} - Array of all recorded snapshots
lib/mock/snapshot-recorder.js:485
↓ 4 callersMethodinterfaceConverter
* Similar to {@link Webidl.brandCheck} but allows skipping the check if third party * interfaces are allowed.
types/webidl.d.ts:303
↓ 4 callersFunctionisBlobLike
* @param {*} object * @returns {object is Blob}
lib/core/util.js:87
↓ 4 callersFunctionisDisturbed
* A body is disturbed if it has been read from and it cannot be re-used without * losing state or data. * @param {import('node:stream').Readable} bo
lib/core/util.js:613
↓ 4 callersFunctionisStream
* @param {*} obj * @returns {obj is import('node:stream').Stream}
lib/core/util.js:79
↓ 4 callersFunctionisValidHeaderValue
* @param {string} characters * @returns {boolean}
lib/core/util.js:779
↓ 4 callersFunctionisValidSubprotocol
* @see https://datatracker.ietf.org/doc/html/rfc6455 * @see https://datatracker.ietf.org/doc/html/rfc2616 * @see https://bugs.chromium.org/p/chromiu
lib/web/websocket/util.js:101
↓ 4 callersFunctionisomorphicEncode
* @param {string} input * @returns {string} * * @see https://infra.spec.whatwg.org/#isomorphic-encode
lib/web/infra/index.js:149
↓ 4 callersFunctionmakeCacheKey
* @param {import('../../types/dispatcher.d.ts').default.DispatchOptions} opts
lib/util/cache.js:150
↓ 4 callersFunctionmakeRequest
(init)
lib/web/fetch/request.js:912
↓ 4 callersMethodonResponseStarted
Invoked when response is received, before headers have been read.
types/dispatcher.d.ts:227
← previousnext →101–200 of 2,421, ranked by callers