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
↓ 2 callers
Function
getCurrentTransaction
()
test/node-test/async_hooks.js:14
↓ 2 callers
Function
getDecodeSplit
* @see https://fetch.spec.whatwg.org/#concept-header-list-get-decode-split * @param {string} name lowercase header name * @param {import('./headers'
lib/web/fetch/util.js:1427
↓ 2 callers
Function
getExpectation
()
test/web-platform-tests/wpt-runner.mjs:424
↓ 2 callers
Function
getHeaderByName
* @param {import('../../index').Headers|string[]|Record<string, string>} headers * @param {string} key
lib/mock/mock-utils.js:47
↓ 2 callers
Function
getInterceptorOrigin
* @param {import('../../types/dispatcher.d.ts').default.DispatchOptions} opts * @param {string|null|undefined} interceptorOrigin
lib/util/cache.js:164
↓ 2 callers
Function
getMaxConcurrent
(client)
lib/dispatcher/client.js:92
↓ 2 callers
Function
getMockDispatch
(mockDispatches, key)
lib/mock/mock-utils.js:171
↓ 2 callers
Function
getPreviousRelease
({ releases, versionTag })
scripts/release.js:10
↓ 2 callers
Function
getPythonInfo
()
test/web-platform-tests/wpt-runner.mjs:109
↓ 2 callers
Function
getRequestOrigin
* @param {import('../../types/dispatcher.d.ts').default.DispatchOptions} opts
lib/util/cache.js:151
↓ 2 callers
Function
getSetCookies
* @param {Headers} headers * @returns {Cookie[]}
lib/web/cookies/index.js:80
↓ 2 callers
Method
getSnapshotInfo
* Gets information about a specific snapshot * @returns {import('./snapshot-recorder').SnapshotInfo|null} - Snapshot information or null if not fou
lib/mock/snapshot-agent.js:338
↓ 2 callers
Function
getStatusText
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status * @param {number} statusCode
lib/mock/mock-utils.js:288
↓ 2 callers
Function
getStrongestMetadata
* @param {MetadataList} metadataList * @returns {MetadataList} The strongest hash algorithm from the metadata list.
lib/web/subresource-integrity/subresource-integrity.js:132
↓ 2 callers
Function
getURLRecord
* @see https://whatpr.org/websockets/48/7b748d3...d5570f3.html#get-a-url-record * @param {string} url * @param {string} [baseURL]
lib/web/websocket/util.js:254
↓ 2 callers
Method
getUpstream
(upstream)
lib/dispatcher/balanced-pool.js:146
↓ 2 callers
Method
handshake
* Start the SOCKS5 handshake
lib/core/socks5-client.js:155
↓ 2 callers
Method
hasCurrentByte
()
lib/web/eventsource/eventsource-stream.js:384
↓ 2 callers
Function
headerValueNormalize
* @see https://fetch.spec.whatwg.org/#concept-header-value-normalize * @param {string} potentialValue * @returns {string}
lib/web/fetch/headers.js:29
↓ 2 callers
Function
holdEventLoop
()
test/http2-goaway-refusal-storm.js:98
↓ 2 callers
Function
httpFetch
(fetchParams)
lib/web/fetch/index.js:1150
↓ 2 callers
Method
illegalConstructor
()
types/webidl.d.ts:288
↓ 2 callers
Function
includesCredentials
* @see https://url.spec.whatwg.org/#include-credentials * @param {URL} url
lib/web/fetch/util.js:1448
↓ 2 callers
Function
initializeResponse
(response, init, body)
lib/web/fetch/response.js:490
↓ 2 callers
Method
insert
* @param {string} key * @param {any} value * @returns {void} *
lib/core/tree.js:133
↓ 2 callers
Function
installErrorAndReconnectServer
(server, p, { contentLength, trackPostWithPlan })
test/node-test/client-errors.js:125
↓ 2 callers
Function
isASCIINumber
* Checks if the given value is a base 10 digit. * @param {string} value * @returns {boolean}
lib/web/eventsource/util.js:20
↓ 2 callers
Function
isBuffer
* @param {*} buffer * @returns {buffer is Buffer}
lib/core/util.js:554
↓ 2 callers
Function
isClosed
* @param {number} readyState * @returns {boolean}
lib/web/websocket/util.js:44
↓ 2 callers
Function
isConnecting
* @param {number} readyState * @returns {boolean}
lib/web/websocket/util.js:12
↓ 2 callers
Function
isContinuationFrame
* @param {number} opcode * @returns {boolean}
lib/web/websocket/util.js:177
↓ 2 callers
Function
isEtagUsable
* Note: this deviates from the spec a little. Empty etags ("", W/"") are valid, * however, including them in cached resposnes serves little to no pu
lib/util/cache.js:654
↓ 2 callers
Method
isFull
* Check if the cache is full (either max size or max count reached) * @returns {boolean} True if the cache is full, false otherwise
lib/cache/memory-cache-store.js:85
↓ 2 callers
Function
isHttpOrHttpsPrefixed
* Check if the value is a valid http or https prefixed string. * * @param {string} value * @returns {boolean}
lib/core/util.js:140
↓ 2 callers
Function
isIterable
* @param {*} obj * @returns {obj is Iterable}
lib/core/util.js:310
↓ 2 callers
Function
isNetworkError
(response)
lib/web/fetch/response.js:396
↓ 2 callers
Function
isProxyAuthorizationHeader
* @param {string} key * @returns {boolean}
lib/dispatcher/proxy-agent.js:387
↓ 2 callers
Method
isRunning
()
test/node-test/balanced-pool.js:470
↓ 2 callers
Function
isTextBinaryFrame
* @param {number} opcode * @returns {boolean}
lib/web/websocket/util.js:185
↓ 2 callers
Function
isToken
* token := 1*<any (US-ASCII) CHAR except SPACE, CTLs, * or tspecials> * @param {number} char
lib/web/fetch/formdata-parser.js:573
↓ 2 callers
Function
isURLPotentiallyTrustworthy
* A potentially trustworthy URL is one which either inherits context from its * creator (about:blank, about:srcdoc, data) or one whose origin is a *
lib/web/fetch/util.js:661
↓ 2 callers
Function
isValidClientWindowBits
* @see https://www.rfc-editor.org/rfc/rfc7692#section-7.1.2.2 * @description "client-max-window-bits = 1*DIGIT" * @param {string} value * @returns
lib/web/websocket/util.js:229
↓ 2 callers
Function
isValidEncodedURL
* @see https://www.rfc-editor.org/rfc/rfc1738#section-2.2 * @param {string} url * @returns {boolean}
lib/web/fetch/util.js:62
↓ 2 callers
Function
isValidLastEventId
* Checks if the given value is a valid LastEventId. * @param {string} value * @returns {boolean}
lib/web/eventsource/util.js:10
↓ 2 callers
Function
iteratorMixin
* @see https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object * @param {string} name name of the instance * @param {any} object class * @par
lib/web/fetch/util.js:876
↓ 2 callers
Function
listen
(server)
test/interceptors/origin-isolation.js:43
↓ 2 callers
Function
llhttp__internal_init
deps/llhttp/src/llhttp.c:1205
↓ 2 callers
Function
llhttp_message_needs_eof
deps/llhttp/src/http.c:129
↓ 2 callers
Function
llhttp_should_keep_alive
deps/llhttp/src/http.c:156
↓ 2 callers
Function
lowerCaseEntries
(headers)
lib/mock/mock-utils.js:35
↓ 2 callers
Function
mainFetch
(fetchParams, recursive)
lib/web/fetch/index.js:564
↓ 2 callers
Function
makeDeduplicationKey
* Creates a string key for request deduplication purposes. * This key is used to identify in-flight requests that can be shared. * @param {import('.
lib/util/cache.js:721
↓ 2 callers
Function
makePolicyContainer
()
lib/web/fetch/util.js:367
↓ 2 callers
Method
markAuthenticated
()
lib/core/socks5-client.js:147
↓ 2 callers
Function
matchHeaders
(mockDispatch, headers)
lib/mock/mock-utils.js:73
↓ 2 callers
Function
maybeResolveReady
()
test/web-platform-tests/wpt-runner.mjs:217
↓ 2 callers
Function
mixinBody
(prototype, getInternalState)
lib/web/fetch/body.js:445
↓ 2 callers
Function
normalizeHeaders
* Normalizes headers for consistent comparison * * @param {Object|UndiciHeaders} headers - Headers to normalize * @returns {NormalizedHeaders} - No
lib/mock/snapshot-utils.js:104
↓ 2 callers
Function
normalizeSearchParams
(query)
lib/mock/mock-utils.js:97
↓ 2 callers
Method
nthCall
(number)
lib/mock/mock-call-history.js:142
↓ 2 callers
Function
onError
(client, err)
lib/dispatcher/client.js:469
↓ 2 callers
Method
onFinally
()
lib/core/request.js:428
↓ 2 callers
Method
onUpgrade
* @param {Buffer} head
lib/dispatcher/client-h1.js:563
↓ 2 callers
Method
open
(cacheName: string)
types/cache.d.ts:6
↓ 2 callers
Function
parseAddress
* Parse an address and determine its type * @param {string} address - The address to parse * @returns {{type: number, buffer: Buffer}} Address type
lib/core/socks5-utils.js:12
↓ 2 callers
Function
parseCookie
* Parses a cookie string * @param {string} cookie
lib/web/cookies/index.js:98
↓ 2 callers
Function
parseIPv6
* Parse IPv6 address to buffer * @param {string} address - IPv6 address string * @returns {Buffer} 16-byte buffer
lib/core/socks5-utils.js:47
↓ 2 callers
Function
parseMetadata
* @param {string} metadata * @returns {MetadataList} * * @see https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata
lib/web/subresource-integrity/subresource-integrity.js:196
↓ 2 callers
Function
parseSetCookie
* @description Parses the field-value attributes of a set-cookie header string. * @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc62
lib/web/cookies/parse.js:14
↓ 2 callers
Function
parseURL
* @param {string|URL|Record<string,string>} url * @returns {URL}
lib/core/util.js:161
↓ 2 callers
Function
pathHasQueryOrFragment
* @param {string} url The path to check for query strings or fragments. * @returns {boolean} Returns true if the path contains a query string or frag
lib/core/util.js:95
↓ 2 callers
Method
pendingInterceptors
()
lib/mock/mock-agent.js:221
↓ 2 callers
Method
ping
(_, cb)
test/http2-late-data.js:75
↓ 2 callers
Function
printResults
(results)
benchmarks/_util/index.js:13
↓ 2 callers
Method
processEvent
* @param {EventSourceStreamEvent} event
lib/web/eventsource/eventsource-stream.js:347
↓ 2 callers
Function
processHeader
(request, key, val)
lib/core/request.js:446
↓ 2 callers
Method
put
(request: RequestInfo, response: Response)
types/cache.d.ts:21
↓ 2 callers
Function
readAllBytes
* @see https://streams.spec.whatwg.org/#readablestreamdefaultreader-read-all-bytes * @see https://streams.spec.whatwg.org/#read-loop * @param {Reada
lib/web/fetch/util.js:993
↓ 2 callers
Method
recordConverter
* @see https://webidl.spec.whatwg.org/#es-to-record * @description Convert a value, V, to a WebIDL record type.
types/webidl.d.ts:294
↓ 2 callers
Function
refH2Session
(session)
lib/dispatcher/client-h2.js:386
↓ 2 callers
Function
refreshTimeout
()
lib/util/timers.js:190
↓ 2 callers
Function
refusingServer
(errorCode)
test/http2-goaway-refusal-storm.js:48
↓ 2 callers
Function
releaseRequestStream
(stream)
lib/dispatcher/client-h2.js:1298
↓ 2 callers
Function
removeHTTPWhitespace
* @see https://fetch.spec.whatwg.org/#http-whitespace * @param {string} str * @param {boolean} [leading=true] * @param {boolean} [trailing=true]
lib/web/fetch/data-url.js:528
↓ 2 callers
Function
removeUpgradeStreamListeners
(stream)
lib/dispatcher/client-h2.js:860
↓ 2 callers
Method
removeUpstream
(upstream)
lib/dispatcher/balanced-pool.js:130
↓ 2 callers
Method
replaceSnapshots
* Replaces all snapshots with new data (full replacement) * @param {Array<{hash: string; snapshot: import('./snapshot-recorder').SnapshotEntryshotE
lib/mock/snapshot-agent.js:347
↓ 2 callers
Function
request
()
test/tls-session-reuse.js:60
↓ 2 callers
Method
resetCallCounts
* Resets call counts for all snapshots (useful for test cleanup) * @returns {void}
lib/mock/snapshot-agent.js:321
↓ 2 callers
Function
resetHttp2Session
(session, err)
lib/dispatcher/client-h2.js:96
↓ 2 callers
Function
respond
(stream)
test/issue-5390.js:21
↓ 2 callers
Function
sample
()
test/fetch/issue-4058.js:32
↓ 2 callers
Function
serializeAMimeType
* @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
lib/web/fetch/data-url.js:472
↓ 2 callers
Method
set
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key * @param {import('../../types/cache-interceptor.d.ts').default.CacheVa
lib/cache/sqlite-cache-store.js:260
↓ 2 callers
Function
setGlobalOrigin
(newOrigin)
lib/web/fetch/global.js:11
↓ 2 callers
Function
setHttp2IdleTimeout
(session)
lib/dispatcher/client-h2.js:499
↓ 2 callers
Function
setupSocket
(socket)
docs/examples/proxy/proxy.js:241
↓ 2 callers
Function
splitVaryHeader
* @param {string | string[]} varyHeader Vary header from the server * @returns {string[]}
lib/util/cache.js:576
↓ 2 callers
Method
start
()
test/node-test/balanced-pool.js:446
↓ 2 callers
Function
startRedirectingWithQueryParams
(t)
test/utils/redirecting-servers.js:235
← previous
next →
401–500 of 2,475, ranked by callers