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
↓ 4 callers
Function
makeRequest
(init)
lib/web/fetch/request.js:912
↓ 4 callers
Method
onResponseStarted
Invoked when response is received, before headers have been read.
types/dispatcher.d.ts:227
↓ 4 callers
Function
parseCacheControlHeader
* @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:354
↓ 4 callers
Function
parseMIMEType
@param {string} input
lib/web/fetch/data-url.js:219
↓ 4 callers
Function
parseVaryHeader
* @param {string | string[]} varyHeader Vary header from the server * @param {Record<string, string | string[]>} headers Request headers * @returns
lib/util/cache.js:610
↓ 4 callers
Method
record
* Records a request-response interaction * @param {SnapshotRequestOptions} requestOpts - Request options * @param {SnapshotEntryResponse} respon
lib/mock/snapshot-recorder.js:314
↓ 4 callers
Function
safelyExtractBody
* 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 callers
Function
serializePathWithQuery
* @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 callers
Function
setCookie
* @param {Headers} headers * @param {Cookie} cookie * @returns {void}
lib/web/cookies/index.js:109
↓ 4 callers
Function
startRedirectingServer
()
test/utils/redirecting-servers.js:27
↓ 4 callers
Function
stream
(opts, factory, callback)
lib/api/api-stream.js:248
↓ 4 callers
Function
unrefH2Session
(session)
lib/dispatcher/client-h2.js:395
↓ 4 callers
Function
urlHasHttpsScheme
* @param {string|URL} url * @returns {boolean}
lib/web/fetch/util.js:1045
↓ 3 callers
Method
#batchCacheOperations
* @see https://w3c.github.io/ServiceWorker/#batch-cache-operations-algorithm * @param {CacheBatchOperation[]} operations * @returns {requestResp
lib/web/cache/cache.js:537
↓ 3 callers
Method
#makeValueUrl
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key * @returns {string}
lib/cache/sqlite-cache-store.js:389
↓ 3 callers
Method
#queryCache
* @see https://w3c.github.io/ServiceWorker/#query-cache * @param {any} requestQuery * @param {import('../../../types/cache').CacheQueryOptions}
lib/web/cache/cache.js:675
↓ 3 callers
Method
Type
* @see https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
types/webidl.d.ts:52
↓ 3 callers
Function
abort
(err)
lib/dispatcher/client-h1.js:1264
↓ 3 callers
Function
abort
(self)
lib/api/abort-signal.js:9
↓ 3 callers
Method
activate
()
lib/mock/mock-agent.js:115
↓ 3 callers
Method
addHeader
(key, value)
lib/core/request.js:440
↓ 3 callers
Method
addListener
* @param {string|symbol} event * @param {(...args: any[]) => void} listener * @returns {this}
lib/api/readable.js:124
↓ 3 callers
Method
addUpstream
(upstream)
lib/dispatcher/balanced-pool.js:81
↓ 3 callers
Function
buildHeadersFromArray
@param {string[]} headers
lib/mock/mock-utils.js:64
↓ 3 callers
Method
callback
()
lib/dispatcher/client.js:448
↓ 3 callers
Method
clear
()
lib/mock/mock-call-history.js:228
↓ 3 callers
Method
clear
()
lib/web/fetch/headers.js:224
↓ 3 callers
Method
clearCallHistory
()
lib/mock/mock-agent.js:153
↓ 3 callers
Function
clearNoStreamsTimeout
(session)
lib/dispatcher/client-h2.js:429
↓ 3 callers
Function
cloneResponse
(response)
lib/web/fetch/response.js:338
↓ 3 callers
Function
closeClientAndServerAsPromise
(client, server)
test/utils/node-http.js:12
↓ 3 callers
Function
closeStreamSession
(stream)
lib/dispatcher/client-h2.js:771
↓ 3 callers
Function
collectAnHTTPQuotedString
* @param {string} input * @param {{ position: number }} position * @param {boolean} [extractValue=false]
lib/web/fetch/data-url.js:397
↓ 3 callers
Function
connectH1
* @param {import ('./client.js')} client * @param {import('net').Socket} socket * @returns
lib/dispatcher/client-h1.js:861
↓ 3 callers
Function
createJsonResponse
(data)
test/snapshot-testing.js:66
↓ 3 callers
Function
createOpaqueTimingInfo
(timingInfo)
lib/web/fetch/util.js:350
↓ 3 callers
Method
deactivate
()
lib/mock/mock-agent.js:111
↓ 3 callers
Method
defaultReplyHeaders
* Set default reply headers on the interceptor for subsequent replies
lib/mock/mock-interceptor.js:196
↓ 3 callers
Method
defaultReplyTrailers
* Set default reply trailers on the interceptor for subsequent replies
lib/mock/mock-interceptor.js:208
↓ 3 callers
Function
deleteCachedValue
* @param {import('../../types/cache-interceptor.d.ts').default.CacheStore} store * @param {import('../../types/cache-interceptor.d.ts').default.Cache
lib/handler/cache-handler.js:471
↓ 3 callers
Function
deleteCookie
* @param {Headers} headers * @param {string} name * @param {{ path?: string, domain?: string }|undefined} attributes * @returns {void}
lib/web/cookies/index.js:57
↓ 3 callers
Function
dispatch
(_opts, handler)
test/interceptors/deduplicate.js:1174
↓ 3 callers
Method
execute
* @param {Buffer} chunk
lib/dispatcher/client-h1.js:315
↓ 3 callers
Function
fetchFinale
(fetchParams, response)
lib/web/fetch/index.js:1024
↓ 3 callers
Function
fill
* @param {Headers} headers * @param {Array|Object} object
lib/web/fetch/headers.js:45
↓ 3 callers
Function
finalizeRequest
(state, resetPendingIdx = false)
lib/dispatcher/client-h2.js:965
↓ 3 callers
Method
findSnapshot
* 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 callers
Function
finish
(err, fromErrorEvent = false)
lib/api/api-stream.js:30
↓ 3 callers
Method
finish
()
lib/dispatcher/client-h1.js:376
↓ 3 callers
Function
fireEvent
* @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 callers
Function
generateMask
()
lib/web/websocket/frame.js:15
↓ 3 callers
Method
get
(origin)
lib/mock/mock-agent.js:58
↓ 3 callers
Method
getAll
()
test/fetch/formdata.js:328
↓ 3 callers
Function
getGlobalOrigin
()
lib/web/fetch/global.js:7
↓ 3 callers
Function
getHeaders
({ headers, proxyName, httpVersion, socket })
docs/examples/proxy/proxy.js:164
↓ 3 callers
Function
getResponseData
(data)
lib/mock/mock-utils.js:150
↓ 3 callers
Function
hasSafeIterator
* Checks whether an object has a safe Symbol.iterator — i.e. one that is * either own or inherited from a non-Object.prototype chain. This prevents
lib/core/util.js:322
↓ 3 callers
Function
hasVaryStar
* @param {string | string[]} varyHeader Vary header from the server * @returns {boolean}
lib/util/cache.js:594
↓ 3 callers
Function
isCTLExcludingHtab
* @param {string} value * @returns {boolean}
lib/web/cookies/util.js:7
↓ 3 callers
Function
isClosing
* @param {number} readyState * @returns {boolean}
lib/web/websocket/util.js:33
↓ 3 callers
Function
isControlFrame
* @see https://datatracker.ietf.org/doc/html/rfc6455#section-5.5 * @param {number} opcode * @returns {boolean}
lib/web/websocket/util.js:165
↓ 3 callers
Function
isErrorLike
(object)
lib/web/fetch/util.js:105
↓ 3 callers
Function
isFormDataLike
* 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 callers
Function
isInvalidOrWildcardVaryHeader
* @param {string | string[]} varyHeader Vary header from the server * @returns {boolean}
lib/util/cache.js:641
↓ 3 callers
Method
isUrlExcluded
* 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 callers
Function
isValidPort
* @param {number|string|undefined} port * @returns {boolean}
lib/core/util.js:125
↓ 3 callers
Function
isomorphicDecode
* @param {Uint8Array} input * @returns {string} * * @see https://infra.spec.whatwg.org/#isomorphic-decode
lib/web/infra/index.js:121
↓ 3 callers
Method
lastCall
()
lib/mock/mock-call-history.js:138
↓ 3 callers
Function
makeAppropriateNetworkError
(fetchParams, err = null)
lib/web/fetch/response.js:478
↓ 3 callers
Function
makeDate
(year, monthIdx, day, hour, minute, second, weekday)
lib/util/date.js:21
↓ 3 callers
Function
makeEntry
* @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 callers
Method
method
()
lib/web/fetch/request.js:602
↓ 3 callers
Function
normalizeHeaders
(headers)
lib/interceptor/dns.js:19
↓ 3 callers
Function
normalizeOrigin
(origin)
lib/mock/mock-utils.js:672
↓ 3 callers
Method
onError
* Handle socket errors
lib/core/socks5-client.js:122
↓ 3 callers
Method
parseLine
* @param {Buffer} line * @param {EventSourceStreamEvent} event
lib/web/eventsource/eventsource-stream.js:271
↓ 3 callers
Function
parsingError
(cause)
lib/web/fetch/formdata-parser.js:527
↓ 3 callers
Function
processBodyError
(reason)
lib/web/fetch/index.js:775
↓ 3 callers
Method
read
()
test/jest/parser-timeout.test.js:17
↓ 3 callers
Method
readMore
()
lib/dispatcher/client-h1.js:302
↓ 3 callers
Function
readableStreamClose
* @param {ReadableStreamController<Uint8Array>} controller
lib/web/fetch/util.js:973
↓ 3 callers
Method
ref
()
test/http2-goaway.js:406
↓ 3 callers
Function
release
({ github, context, versionTag, commitHash })
scripts/release.js:55
↓ 3 callers
Function
removeChars
* @param {Buffer} buf * @param {boolean} leading * @param {boolean} trailing * @param {(charCode: number) => boolean} predicate * @returns {Buffer
lib/web/fetch/formdata-parser.js:492
↓ 3 callers
Method
removeEventListener
( type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | E
types/eventsource.d.ts:38
↓ 3 callers
Method
replyContentLength
* Set reply content length header for replies on the interceptor
lib/mock/mock-interceptor.js:220
↓ 3 callers
Method
replyWithError
* Mock an undici request with a defined error.
lib/mock/mock-interceptor.js:184
↓ 3 callers
Function
resume
(client, sync)
lib/dispatcher/client.js:643
↓ 3 callers
Method
saveSnapshots
* 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 callers
Method
set
(hostname, records)
lib/interceptor/dns.js:124
↓ 3 callers
Function
staleResponseRequiresRevalidation
* @param {import('../../types/cache-interceptor.d.ts').default.GetResult} result * @param {import('../../types/cache-interceptor.d.ts').default.Cache
lib/interceptor/cache.js:113
↓ 3 callers
Method
start
()
test/node-fetch/utils/server.js:22
↓ 3 callers
Function
startRedirectingChainServers
()
test/utils/redirecting-servers.js:125
↓ 3 callers
Function
startRedirectingWithAuthorization
(authorization)
test/utils/redirecting-servers.js:168
↓ 3 callers
Function
startRedirectingWithBodyServer
()
test/utils/redirecting-servers.js:90
↓ 3 callers
Function
startRedirectingWithCookie
(cookie)
test/utils/redirecting-servers.js:191
↓ 3 callers
Function
startRedirectingWithoutLocationServer
()
test/utils/redirecting-servers.js:107
↓ 3 callers
Method
stop
()
test/node-fetch/utils/server.js:27
↓ 3 callers
Function
toIMFDate
* @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 callers
Method
toMap
()
lib/mock/mock-call-history.js:92
← previous
next →
201–300 of 2,475, ranked by callers