MCPcopy Create free account

hub / github.com/nodejs/undici / functions

Functions2,421 in github.com/nodejs/undici

↓ 2 callersMethodgetSnapshotInfo
* 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 callersFunctiongetStatusText
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status * @param {number} statusCode
lib/mock/mock-utils.js:288
↓ 2 callersFunctiongetStrongestMetadata
* @param {MetadataList} metadataList * @returns {MetadataList} The strongest hash algorithm from the metadata list.
lib/web/subresource-integrity/subresource-integrity.js:132
↓ 2 callersFunctiongetURLRecord
* @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 callersMethodgetUpstream
(upstream)
lib/dispatcher/balanced-pool.js:143
↓ 2 callersMethodhandshake
* Start the SOCKS5 handshake
lib/core/socks5-client.js:155
↓ 2 callersMethodhasCurrentByte
()
lib/web/eventsource/eventsource-stream.js:357
↓ 2 callersFunctionhasSafeIterator
* 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 callersFunctionheaderValueNormalize
* @see https://fetch.spec.whatwg.org/#concept-header-value-normalize * @param {string} potentialValue * @returns {string}
lib/web/fetch/headers.js:29
↓ 2 callersFunctionholdEventLoop
()
test/http2-goaway-refusal-storm.js:98
↓ 2 callersFunctionhttpFetch
(fetchParams)
lib/web/fetch/index.js:1149
↓ 2 callersMethodillegalConstructor
()
types/webidl.d.ts:288
↓ 2 callersFunctionincludesCredentials
* @see https://url.spec.whatwg.org/#include-credentials * @param {URL} url
lib/web/fetch/util.js:1443
↓ 2 callersFunctioninitializeResponse
(response, init, body)
lib/web/fetch/response.js:490
↓ 2 callersMethodinsert
* @param {string} key * @param {any} value * @returns {void} *
lib/core/tree.js:133
↓ 2 callersFunctioninstallErrorAndReconnectServer
(server, p, { contentLength, trackPostWithPlan })
test/node-test/client-errors.js:125
↓ 2 callersFunctionisASCIINumber
* Checks if the given value is a base 10 digit. * @param {string} value * @returns {boolean}
lib/web/eventsource/util.js:20
↓ 2 callersFunctionisBuffer
* @param {*} buffer * @returns {buffer is Buffer}
lib/core/util.js:554
↓ 2 callersFunctionisClosed
* @param {number} readyState * @returns {boolean}
lib/web/websocket/util.js:44
↓ 2 callersFunctionisConnecting
* @param {number} readyState * @returns {boolean}
lib/web/websocket/util.js:12
↓ 2 callersFunctionisContinuationFrame
* @param {number} opcode * @returns {boolean}
lib/web/websocket/util.js:177
↓ 2 callersFunctionisEtagUsable
* 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 callersMethodisFull
* 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 callersFunctionisHttpOrHttpsPrefixed
* Check if the value is a valid http or https prefixed string. * * @param {string} value * @returns {boolean}
lib/core/util.js:140
↓ 2 callersFunctionisIterable
* @param {*} obj * @returns {obj is Iterable}
lib/core/util.js:310
↓ 2 callersFunctionisNetworkError
(response)
lib/web/fetch/response.js:396
↓ 2 callersFunctionisProxyAuthorizationHeader
* @param {string} key * @returns {boolean}
lib/dispatcher/proxy-agent.js:370
↓ 2 callersMethodisRunning
()
test/node-test/balanced-pool.js:467
↓ 2 callersFunctionisTextBinaryFrame
* @param {number} opcode * @returns {boolean}
lib/web/websocket/util.js:185
↓ 2 callersFunctionisToken
* token := 1*<any (US-ASCII) CHAR except SPACE, CTLs, * or tspecials> * @param {number} char
lib/web/fetch/formdata-parser.js:573
↓ 2 callersFunctionisValidClientWindowBits
* @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 callersFunctionisValidEncodedURL
* @see https://www.rfc-editor.org/rfc/rfc1738#section-2.2 * @param {string} url * @returns {boolean}
lib/web/fetch/util.js:62
↓ 2 callersFunctionisValidLastEventId
* Checks if the given value is a valid LastEventId. * @param {string} value * @returns {boolean}
lib/web/eventsource/util.js:10
↓ 2 callersFunctionisomorphicDecode
* @param {Uint8Array} input * @returns {string} * * @see https://infra.spec.whatwg.org/#isomorphic-decode
lib/web/infra/index.js:121
↓ 2 callersFunctioniteratorMixin
* @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 callersFunctionllhttp__internal_init
deps/llhttp/src/llhttp.c:1205
↓ 2 callersFunctionllhttp_message_needs_eof
deps/llhttp/src/http.c:129
↓ 2 callersFunctionllhttp_should_keep_alive
deps/llhttp/src/http.c:156
↓ 2 callersFunctionlowerCaseEntries
(headers)
lib/mock/mock-utils.js:35
↓ 2 callersFunctionmainFetch
(fetchParams, recursive)
lib/web/fetch/index.js:563
↓ 2 callersFunctionmakeDeduplicationKey
* 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 callersFunctionmakePolicyContainer
()
lib/web/fetch/util.js:362
↓ 2 callersMethodmarkAuthenticated
()
lib/core/socks5-client.js:147
↓ 2 callersFunctionmatchHeaders
(mockDispatch, headers)
lib/mock/mock-utils.js:73
↓ 2 callersFunctionmaybeResolveReady
()
test/web-platform-tests/wpt-runner.mjs:217
↓ 2 callersFunctionmixinBody
(prototype, getInternalState)
lib/web/fetch/body.js:445
↓ 2 callersFunctionnormalizeHeaders
* Normalizes headers for consistent comparison * * @param {Object|UndiciHeaders} headers - Headers to normalize * @returns {NormalizedHeaders} - No
lib/mock/snapshot-utils.js:104
↓ 2 callersFunctionnormalizeSearchParams
(query)
lib/mock/mock-utils.js:97
↓ 2 callersMethodnthCall
(number)
lib/mock/mock-call-history.js:142
↓ 2 callersFunctiononError
(client, err)
lib/dispatcher/client.js:468
↓ 2 callersMethodonFinally
()
lib/core/request.js:428
↓ 2 callersMethodonUpgrade
* @param {Buffer} head
lib/dispatcher/client-h1.js:563
↓ 2 callersMethodopen
(cacheName: string)
types/cache.d.ts:6
↓ 2 callersFunctionparseAddress
* 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 callersFunctionparseCookie
* Parses a cookie string * @param {string} cookie
lib/web/cookies/index.js:98
↓ 2 callersFunctionparseIPv6
* Parse IPv6 address to buffer * @param {string} address - IPv6 address string * @returns {Buffer} 16-byte buffer
lib/core/socks5-utils.js:47
↓ 2 callersMethodparseLine
* @param {Buffer} line * @param {EventSourceStreamEvent} event
lib/web/eventsource/eventsource-stream.js:253
↓ 2 callersFunctionparseMetadata
* @param {string} metadata * @returns {MetadataList} * * @see https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata
lib/web/subresource-integrity/subresource-integrity.js:196
↓ 2 callersFunctionparseSetCookie
* @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 callersFunctionparseURL
* @param {string|URL|Record<string,string>} url * @returns {URL}
lib/core/util.js:161
↓ 2 callersFunctionpathHasQueryOrFragment
* @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 callersMethodpendingInterceptors
()
lib/mock/mock-agent.js:209
↓ 2 callersMethodping
(_, cb)
test/http2-late-data.js:75
↓ 2 callersFunctionprintResults
(results)
benchmarks/_util/index.js:13
↓ 2 callersMethodprocessEvent
* @param {EventSourceStreamEvent} event
lib/web/eventsource/eventsource-stream.js:321
↓ 2 callersFunctionprocessHeader
(request, key, val)
lib/core/request.js:446
↓ 2 callersMethodput
(request: RequestInfo, response: Response)
types/cache.d.ts:21
↓ 2 callersFunctionreadAllBytes
* @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 callersMethodrecordConverter
* @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 callersFunctionrefH2Session
(session)
lib/dispatcher/client-h2.js:384
↓ 2 callersFunctionrefreshTimeout
()
lib/util/timers.js:190
↓ 2 callersFunctionrefusingServer
(errorCode)
test/http2-goaway-refusal-storm.js:48
↓ 2 callersFunctionreleaseRequestStream
(stream)
lib/dispatcher/client-h2.js:1292
↓ 2 callersFunctionremoveHTTPWhitespace
* @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 callersFunctionremoveUpgradeStreamListeners
(stream)
lib/dispatcher/client-h2.js:858
↓ 2 callersMethodremoveUpstream
(upstream)
lib/dispatcher/balanced-pool.js:127
↓ 2 callersMethodreplaceSnapshots
* Replaces all snapshots with new data (full replacement) * @param {Array<{hash: string; snapshot: import('./snapshot-recorder').SnapshotEntryshotE
lib/mock/snapshot-agent.js:347
↓ 2 callersFunctionrequest
()
test/tls-session-reuse.js:60
↓ 2 callersMethodresetCallCounts
* Resets call counts for all snapshots (useful for test cleanup) * @returns {void}
lib/mock/snapshot-agent.js:321
↓ 2 callersFunctionresetHttp2Session
(session, err)
lib/dispatcher/client-h2.js:94
↓ 2 callersFunctionrespond
(stream)
test/issue-5390.js:21
↓ 2 callersFunctionsample
()
test/fetch/issue-4058.js:32
↓ 2 callersFunctionserializeAMimeType
* @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
lib/web/fetch/data-url.js:472
↓ 2 callersMethodset
* @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 callersFunctionsetGlobalOrigin
(newOrigin)
lib/web/fetch/global.js:11
↓ 2 callersFunctionsetHttp2IdleTimeout
(session)
lib/dispatcher/client-h2.js:497
↓ 2 callersFunctionsetupSocket
(socket)
docs/examples/proxy/proxy.js:241
↓ 2 callersFunctionsplitVaryHeader
* @param {string | string[]} varyHeader Vary header from the server * @returns {string[]}
lib/util/cache.js:536
↓ 2 callersMethodstart
()
test/node-test/balanced-pool.js:443
↓ 2 callersFunctionstartRedirectingWithQueryParams
(t)
test/utils/redirecting-servers.js:235
↓ 2 callersMethodstop
()
test/node-test/balanced-pool.js:471
↓ 2 callersFunctionstringPercentDecode
@param {string} input
lib/web/fetch/data-url.js:142
↓ 2 callersFunctionstringify
* @see https://www.rfc-editor.org/rfc/rfc6265#section-4.1.1 * @param {import('./index').Cookie} cookie
lib/web/cookies/util.js:273
↓ 2 callersFunctionsuccessSteps
(data)
lib/web/fetch/body.js:481
↓ 2 callersFunctionterminateProcess
(proc, exitPromise)
test/web-platform-tests/wpt-runner.mjs:62
↓ 2 callersFunctionthrowProxyAuthError
()
lib/dispatcher/proxy-agent.js:374
↓ 2 callersMethodtoSortedArray
()
lib/web/fetch/headers.js:353
↓ 2 callersMethodtrackHeader
* @param {number} len
lib/dispatcher/client-h1.js:553
↓ 2 callersFunctionurlIsLocal
* @see https://fetch.spec.whatwg.org/#is-local * @param {URL} url * @returns {boolean}
lib/web/fetch/util.js:1026
↓ 2 callersFunctionutf8DecodeBytes
* @see https://encoding.spec.whatwg.org/#utf-8-decode * @param {Uint8Array} buffer
lib/encoding/index.js:9
← previousnext →401–500 of 2,421, ranked by callers