Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/undici
/ functions
Functions
2,421 in github.com/nodejs/undici
⨍
Functions
2,421
◇
Types & classes
604
↓ 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:143
↓ 2 callers
Method
handshake
* Start the SOCKS5 handshake
lib/core/socks5-client.js:155
↓ 2 callers
Method
hasCurrentByte
()
lib/web/eventsource/eventsource-stream.js:357
↓ 2 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
↓ 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:1149
↓ 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:1443
↓ 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:614
↓ 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:370
↓ 2 callers
Method
isRunning
()
test/node-test/balanced-pool.js:467
↓ 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
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
isomorphicDecode
* @param {Uint8Array} input * @returns {string} * * @see https://infra.spec.whatwg.org/#isomorphic-decode
lib/web/infra/index.js:121
↓ 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:871
↓ 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:563
↓ 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:681
↓ 2 callers
Function
makePolicyContainer
()
lib/web/fetch/util.js:362
↓ 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:468
↓ 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
Method
parseLine
* @param {Buffer} line * @param {EventSourceStreamEvent} event
lib/web/eventsource/eventsource-stream.js:253
↓ 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:209
↓ 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:321
↓ 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:988
↓ 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:384
↓ 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:1292
↓ 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:858
↓ 2 callers
Method
removeUpstream
(upstream)
lib/dispatcher/balanced-pool.js:127
↓ 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:94
↓ 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:497
↓ 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:536
↓ 2 callers
Method
start
()
test/node-test/balanced-pool.js:443
↓ 2 callers
Function
startRedirectingWithQueryParams
(t)
test/utils/redirecting-servers.js:235
↓ 2 callers
Method
stop
()
test/node-test/balanced-pool.js:471
↓ 2 callers
Function
stringPercentDecode
@param {string} input
lib/web/fetch/data-url.js:142
↓ 2 callers
Function
stringify
* @see https://www.rfc-editor.org/rfc/rfc6265#section-4.1.1 * @param {import('./index').Cookie} cookie
lib/web/cookies/util.js:273
↓ 2 callers
Function
successSteps
(data)
lib/web/fetch/body.js:481
↓ 2 callers
Function
terminateProcess
(proc, exitPromise)
test/web-platform-tests/wpt-runner.mjs:62
↓ 2 callers
Function
throwProxyAuthError
()
lib/dispatcher/proxy-agent.js:374
↓ 2 callers
Method
toSortedArray
()
lib/web/fetch/headers.js:353
↓ 2 callers
Method
trackHeader
* @param {number} len
lib/dispatcher/client-h1.js:553
↓ 2 callers
Function
urlIsLocal
* @see https://fetch.spec.whatwg.org/#is-local * @param {URL} url * @returns {boolean}
lib/web/fetch/util.js:1026
↓ 2 callers
Function
utf8DecodeBytes
* @see https://encoding.spec.whatwg.org/#utf-8-decode * @param {Uint8Array} buffer
lib/encoding/index.js:9
← previous
next →
401–500 of 2,421, ranked by callers