MCPcopy Create free account

hub / github.com/nodejs/undici / functions

Functions2,421 in github.com/nodejs/undici

↓ 4 callersFunctionparseCacheControlHeader
* @see https://www.rfc-editor.org/rfc/rfc9111.html#name-cache-control * @see https://www.iana.org/assignments/http-cache-directives/http-cache-direct
lib/util/cache.js:314
↓ 4 callersFunctionparseMIMEType
@param {string} input
lib/web/fetch/data-url.js:219
↓ 4 callersMethodrecord
* Records a request-response interaction * @param {SnapshotRequestOptions} requestOpts - Request options * @param {SnapshotEntryResponse} respon
lib/mock/snapshot-recorder.js:314
↓ 4 callersFunctionsafelyExtractBody
* Safely extract a body with type from a byte sequence or BodyInit object. * * @param {import('../../../types').BodyInit} object - The BodyInit obje
lib/web/fetch/body.js:262
↓ 4 callersFunctionserializePathWithQuery
* @param {string} url The URL to add the query params to * @param {import('node:querystring').ParsedUrlQueryInput} queryParams The object to serializ
lib/core/util.js:107
↓ 4 callersFunctionsetCookie
* @param {Headers} headers * @param {Cookie} cookie * @returns {void}
lib/web/cookies/index.js:109
↓ 4 callersFunctionstartRedirectingServer
()
test/utils/redirecting-servers.js:27
↓ 4 callersFunctionstream
(opts, factory, callback)
lib/api/api-stream.js:248
↓ 4 callersFunctionunrefH2Session
(session)
lib/dispatcher/client-h2.js:393
↓ 4 callersFunctionurlHasHttpsScheme
* @param {string|URL} url * @returns {boolean}
lib/web/fetch/util.js:1040
↓ 3 callersMethod#batchCacheOperations
* @see https://w3c.github.io/ServiceWorker/#batch-cache-operations-algorithm * @param {CacheBatchOperation[]} operations * @returns {requestResp
lib/web/cache/cache.js:537
↓ 3 callersMethod#cleanupDecompressors
* Cleans up decompressor references to prevent memory leaks * @returns {void}
lib/interceptor/decompress.js:154
↓ 3 callersMethod#makeValueUrl
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key * @returns {string}
lib/cache/sqlite-cache-store.js:389
↓ 3 callersMethod#queryCache
* @see https://w3c.github.io/ServiceWorker/#query-cache * @param {any} requestQuery * @param {import('../../../types/cache').CacheQueryOptions}
lib/web/cache/cache.js:675
↓ 3 callersMethodType
* @see https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
types/webidl.d.ts:52
↓ 3 callersFunctionabort
(err)
lib/dispatcher/client-h1.js:1256
↓ 3 callersFunctionabort
(self)
lib/api/abort-signal.js:9
↓ 3 callersMethodactivate
()
lib/mock/mock-agent.js:103
↓ 3 callersMethodaddHeader
(key, value)
lib/core/request.js:440
↓ 3 callersMethodaddListener
* @param {string|symbol} event * @param {(...args: any[]) => void} listener * @returns {this}
lib/api/readable.js:124
↓ 3 callersMethodaddUpstream
(upstream)
lib/dispatcher/balanced-pool.js:78
↓ 3 callersFunctionbuildHeadersFromArray
@param {string[]} headers
lib/mock/mock-utils.js:64
↓ 3 callersMethodcallback
()
lib/dispatcher/client.js:447
↓ 3 callersMethodclear
()
lib/mock/mock-call-history.js:228
↓ 3 callersMethodclear
()
lib/web/fetch/headers.js:224
↓ 3 callersMethodclearCallHistory
()
lib/mock/mock-agent.js:141
↓ 3 callersFunctionclearNoStreamsTimeout
(session)
lib/dispatcher/client-h2.js:427
↓ 3 callersFunctioncloneResponse
(response)
lib/web/fetch/response.js:338
↓ 3 callersFunctioncloseClientAndServerAsPromise
(client, server)
test/utils/node-http.js:12
↓ 3 callersFunctioncloseStreamSession
(stream)
lib/dispatcher/client-h2.js:769
↓ 3 callersFunctioncollectAnHTTPQuotedString
* @param {string} input * @param {{ position: number }} position * @param {boolean} [extractValue=false]
lib/web/fetch/data-url.js:397
↓ 3 callersFunctionconnectH1
* @param {import ('./client.js')} client * @param {import('net').Socket} socket * @returns
lib/dispatcher/client-h1.js:861
↓ 3 callersFunctioncreateJsonResponse
(data)
test/snapshot-testing.js:66
↓ 3 callersFunctioncreateOpaqueTimingInfo
(timingInfo)
lib/web/fetch/util.js:345
↓ 3 callersMethoddeactivate
()
lib/mock/mock-agent.js:99
↓ 3 callersMethoddefaultReplyHeaders
* Set default reply headers on the interceptor for subsequent replies
lib/mock/mock-interceptor.js:196
↓ 3 callersMethoddefaultReplyTrailers
* Set default reply trailers on the interceptor for subsequent replies
lib/mock/mock-interceptor.js:208
↓ 3 callersFunctiondeleteCachedValue
* @param {import('../../types/cache-interceptor.d.ts').default.CacheStore} store * @param {import('../../types/cache-interceptor.d.ts').default.Cache
lib/handler/cache-handler.js:457
↓ 3 callersFunctiondeleteCookie
* @param {Headers} headers * @param {string} name * @param {{ path?: string, domain?: string }|undefined} attributes * @returns {void}
lib/web/cookies/index.js:57
↓ 3 callersMethodexecute
* @param {Buffer} chunk
lib/dispatcher/client-h1.js:315
↓ 3 callersFunctionfactory
(origin)
test/env-http-proxy-agent.js:212
↓ 3 callersFunctionfetchFinale
(fetchParams, response)
lib/web/fetch/index.js:1023
↓ 3 callersFunctionfill
* @param {Headers} headers * @param {Array|Object} object
lib/web/fetch/headers.js:45
↓ 3 callersFunctionfinalizeRequest
(state, resetPendingIdx = false)
lib/dispatcher/client-h2.js:963
↓ 3 callersMethodfindSnapshot
* Finds a matching snapshot for the given request * Returns the appropriate response based on call count for sequential responses * * @param
lib/mock/snapshot-recorder.js:384
↓ 3 callersFunctionfinish
(err, fromErrorEvent = false)
lib/api/api-stream.js:30
↓ 3 callersMethodfinish
()
lib/dispatcher/client-h1.js:376
↓ 3 callersFunctionfireEvent
* @see https://dom.spec.whatwg.org/#concept-event-fire * @param {string} e * @param {EventTarget} target * @param {(...args: ConstructorParameters<
lib/web/websocket/util.js:56
↓ 3 callersFunctiongenerateMask
()
lib/web/websocket/frame.js:15
↓ 3 callersMethodget
(origin)
lib/mock/mock-agent.js:58
↓ 3 callersMethodgetAll
()
test/fetch/formdata.js:328
↓ 3 callersFunctiongetGlobalOrigin
()
lib/web/fetch/global.js:7
↓ 3 callersFunctiongetHeaders
({ headers, proxyName, httpVersion, socket })
docs/examples/proxy/proxy.js:164
↓ 3 callersFunctiongetResponseData
(data)
lib/mock/mock-utils.js:150
↓ 3 callersFunctionhasVaryStar
* @param {string | string[]} varyHeader Vary header from the server * @returns {boolean}
lib/util/cache.js:554
↓ 3 callersFunctionisCTLExcludingHtab
* @param {string} value * @returns {boolean}
lib/web/cookies/util.js:7
↓ 3 callersFunctionisClosing
* @param {number} readyState * @returns {boolean}
lib/web/websocket/util.js:33
↓ 3 callersFunctionisControlFrame
* @see https://datatracker.ietf.org/doc/html/rfc6455#section-5.5 * @param {number} opcode * @returns {boolean}
lib/web/websocket/util.js:165
↓ 3 callersFunctionisErrorLike
(object)
lib/web/fetch/util.js:105
↓ 3 callersFunctionisFormDataLike
* The object should be a FormData instance and contains all the required * methods. * @param {*} object * @returns {object is FormData}
lib/core/util.js:691
↓ 3 callersFunctionisInvalidOrWildcardVaryHeader
* @param {string | string[]} varyHeader Vary header from the server * @returns {boolean}
lib/util/cache.js:601
↓ 3 callersMethodisUrlExcluded
* Checks if a URL should be excluded from recording/playback * @param {SnapshotRequestOptions} requestOpts - Request options to check * @returns
lib/mock/snapshot-recorder.js:372
↓ 3 callersFunctionisValidHeaderValue
* @see https://fetch.spec.whatwg.org/#header-value * @param {string} potentialValue
lib/web/fetch/util.js:146
↓ 3 callersFunctionisValidPort
* @param {number|string|undefined} port * @returns {boolean}
lib/core/util.js:125
↓ 3 callersMethodlastCall
()
lib/mock/mock-call-history.js:138
↓ 3 callersFunctionmakeAppropriateNetworkError
(fetchParams, err = null)
lib/web/fetch/response.js:478
↓ 3 callersFunctionmakeDate
(year, monthIdx, day, hour, minute, second, weekday)
lib/util/date.js:21
↓ 3 callersFunctionmakeEntry
* @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#create-an-entry * @param {string} name * @param {string|Blob} value
lib/web/fetch/formdata.js:242
↓ 3 callersMethodmethod
()
lib/web/fetch/request.js:602
↓ 3 callersFunctionnormalizeHeaders
(headers)
lib/interceptor/dns.js:18
↓ 3 callersFunctionnormalizeOrigin
(origin)
lib/mock/mock-utils.js:671
↓ 3 callersMethodonError
* Handle socket errors
lib/core/socks5-client.js:122
↓ 3 callersFunctionparseVaryHeader
* @param {string | string[]} varyHeader Vary header from the server * @param {Record<string, string | string[]>} headers Request headers * @returns
lib/util/cache.js:570
↓ 3 callersFunctionparsingError
(cause)
lib/web/fetch/formdata-parser.js:527
↓ 3 callersFunctionprocessBodyError
(reason)
lib/web/fetch/index.js:774
↓ 3 callersMethodread
()
test/jest/parser-timeout.test.js:17
↓ 3 callersMethodreadMore
()
lib/dispatcher/client-h1.js:302
↓ 3 callersFunctionreadableStreamClose
* @param {ReadableStreamController<Uint8Array>} controller
lib/web/fetch/util.js:968
↓ 3 callersMethodref
()
test/http2-goaway.js:320
↓ 3 callersFunctionrelease
({ github, context, versionTag, commitHash })
scripts/release.js:55
↓ 3 callersFunctionremoveChars
* @param {Buffer} buf * @param {boolean} leading * @param {boolean} trailing * @param {(charCode: number) => boolean} predicate * @returns {Buffer
lib/web/fetch/formdata-parser.js:492
↓ 3 callersMethodremoveEventListener
( type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | E
types/eventsource.d.ts:38
↓ 3 callersMethodreplyContentLength
* Set reply content length header for replies on the interceptor
lib/mock/mock-interceptor.js:220
↓ 3 callersMethodreplyWithError
* Mock an undici request with a defined error.
lib/mock/mock-interceptor.js:184
↓ 3 callersFunctionresume
(client, sync)
lib/dispatcher/client.js:642
↓ 3 callersMethodsaveSnapshots
* Saves snapshots to file * * @param {string} [filePath] - Optional file path to save snapshots * @returns {Promise<void>} - Resolves when sn
lib/mock/snapshot-recorder.js:453
↓ 3 callersMethodset
(hostname, records)
lib/interceptor/dns.js:123
↓ 3 callersFunctionstaleResponseRequiresRevalidation
* @param {import('../../types/cache-interceptor.d.ts').default.GetResult} result * @param {import('../../types/cache-interceptor.d.ts').default.Cache
lib/interceptor/cache.js:104
↓ 3 callersMethodstart
()
test/node-fetch/utils/server.js:22
↓ 3 callersFunctionstartRedirectingChainServers
()
test/utils/redirecting-servers.js:125
↓ 3 callersFunctionstartRedirectingWithAuthorization
(authorization)
test/utils/redirecting-servers.js:168
↓ 3 callersFunctionstartRedirectingWithBodyServer
()
test/utils/redirecting-servers.js:90
↓ 3 callersFunctionstartRedirectingWithCookie
(cookie)
test/utils/redirecting-servers.js:191
↓ 3 callersFunctionstartRedirectingWithoutLocationServer
()
test/utils/redirecting-servers.js:107
↓ 3 callersMethodstop
()
test/node-fetch/utils/server.js:27
↓ 3 callersFunctiontoIMFDate
* @see https://www.rfc-editor.org/rfc/rfc7231#section-7.1.1.1 * @param {number|Date} date IMF-fixdate = day-name "," SP date1 SP time-of-day SP GM
lib/web/cookies/util.js:248
↓ 3 callersMethodtoMap
()
lib/mock/mock-call-history.js:92
↓ 3 callersFunctiontoRawHeaders
* @param {Record<string, string | string[]>} headers * @returns {Buffer[]}
lib/core/util.js:523
↓ 3 callersFunctiontrimOWS
(value)
lib/util/cache.js:16
↓ 3 callersFunctionvalidateCookieName
CHAR = <any US-ASCII character (octets 0 - 127)> token = 1*<any CHAR except CTLs or separators> separators = "(" | ")" | "<"
lib/web/cookies/util.js:31
← previousnext →201–300 of 2,421, ranked by callers