MCPcopy Create free account

hub / github.com/axios/axios / functions

Functions645 in github.com/axios/axios

↓ 70 callersMethodget
(header, parser)
lib/core/AxiosHeaders.js:138
↓ 50 callersMethodend
()
tests/unit/adapters/http.test.js:5301
↓ 43 callersMethodfrom
(error, code, config, request, response, customProps)
lib/core/AxiosError.js:76
↓ 40 callersMethodcreate
(config?: CreateAxiosDefaults)
index.d.ts:671
↓ 40 callersMethodforEach
* Iterate over all the registered interceptors * * This method is particularly useful for skipping over any * interceptors that may have beco
lib/core/InterceptorManager.js:63
↓ 30 callersMethodtoString
()
lib/core/AxiosHeaders.js:274
↓ 20 callersMethodconcat
(...targets)
lib/core/AxiosHeaders.js:254
↓ 19 callersMethodentries
()
tests/unit/helpers/formDataToStream.test.js:12
↓ 15 callersMethoduse
* Add a new interceptor to the stack * * @param {Function} fulfilled The function to handle `then` for a `Promise` * @param {Function} reject
lib/core/InterceptorManager.js:19
↓ 14 callersMethodset
(header, valueOrRewrite, rewrite)
lib/core/AxiosHeaders.js:85
↓ 13 callersMethodappend
(name: string, value: any, options?: any)
index.d.ts:680
↓ 12 callersFunctiontest
(fn, ...args)
lib/adapters/fetch.js:51
↓ 12 callersMethodwrite
()
tests/unit/adapters/http.test.js:5299
↓ 11 callersMethodemit
(type, target = 'request', event = {})
tests/browser/progress.browser.test.js:63
↓ 10 callersMethoddelete
(header, matcher)
lib/core/AxiosHeaders.js:184
↓ 10 callersMethodrequest
* Dispatch a request * * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) * @param {?Objec
lib/core/Axios.js:39
↓ 10 callersMethodsetHeader
(_value, _header, _rewrite)
lib/core/AxiosHeaders.js:88
↓ 9 callersMethodabort
()
tests/browser/xsrf.browser.test.js:53
↓ 9 callersMethodaddEventListener
()
tests/browser/xsrf.browser.test.js:20
↓ 9 callersMethodtoJSON
()
lib/core/AxiosError.js:128
↓ 8 callersFunctionmergeConfig
(config1, config2)
lib/core/mergeConfig.js:17
↓ 7 callersMethodhas
(header, matcher)
lib/core/AxiosHeaders.js:168
↓ 7 callersMethodsource
()
index.d.ts:558
↓ 6 callersMethodeject
(id: number)
index.d.ts:600
↓ 6 callersMethodencode
()
lib/helpers/formDataToStream.js:41
↓ 6 callersFunctionsetTimeoutAsync
(ms)
tests/setup/server.js:11
↓ 6 callersFunctiontoFormData
* It converts an object into a FormData object * * @param {Object<any, any>} obj - The object to convert to form data. * @param {string} formData -
lib/helpers/toFormData.js:89
↓ 6 callersMethodunsubscribe
* Unsubscribe from the cancel signal
lib/cancel/CancelToken.js:95
↓ 5 callersMethodclear
()
index.d.ts:601
↓ 5 callersFunctionforEach
* Iterate over an Array or an Object invoking a function for each item. * * If `obj` is an Array callback will be called passing * the value, index
lib/utils.js:316
↓ 5 callersFunctionisBuffer
* Determine if a value is a Buffer * * @param {*} val The value to test * * @returns {boolean} True if value is a Buffer, otherwise false
lib/utils.js:48
↓ 5 callersMethodnormalize
(format)
lib/core/AxiosHeaders.js:227
↓ 5 callersFunctionnormalizeHeader
(header)
lib/core/AxiosHeaders.js:9
↓ 5 callersFunctionresolveConfig
(config)
lib/helpers/resolveConfig.js:38
↓ 5 callersFunctionsettle
(resolve, reject, response)
lib/core/settle.js:14
↓ 4 callersFunctionbuildFullPath
(baseURL, requestedURL, allowAbsoluteUrls)
lib/core/buildFullPath.js:16
↓ 4 callersFunctionbuildURL
(url, params, options)
lib/helpers/buildURL.js:31
↓ 4 callersFunctioncleanupTempFixture
(dirPath)
tests/module/cjs/tests/helpers/fixture.cjs:18
↓ 4 callersFunctionfn
()
tests/unit/prototypePollution.test.js:1077
↓ 4 callersFunctiongetMergedValue
(target, source, prop, caseless)
lib/core/mergeConfig.js:36
↓ 4 callersMethodgetUri
(config)
lib/core/Axios.js:234
↓ 4 callersFunctionisObject
(thing)
lib/utils.js:118
↓ 4 callersFunctionprogressEventReducer
(listener, isDownloadStream, freq = 3)
lib/helpers/progressEventReducer.js:5
↓ 4 callersFunctionstartHTTPServer
(handlerOrOptions, options)
tests/setup/server.js:20
↓ 4 callersFunctionstopHTTPServer
(server, timeout = 10000)
tests/setup/server.js:111
↓ 4 callersMethodsubscribe
* Subscribe to the cancel signal
lib/cancel/CancelToken.js:78
↓ 3 callersMethodaccessor
(header)
lib/core/AxiosHeaders.js:300
↓ 3 callersFunctionbind
(fn, thisArg)
lib/helpers/bind.js:10
↓ 3 callersFunctioncleanupTempFixture
(dirPath)
tests/module/esm/tests/helpers/fixture.js:18
↓ 3 callersFunctioncreateTempFixture
(suiteRoot, name, sourcePath, tsconfig, packageJson)
tests/module/cjs/tests/helpers/fixture.cjs:4
↓ 3 callersMethoddestroy
(err)
tests/unit/adapters/http.test.js:5309
↓ 3 callersFunctiondone
()
lib/adapters/xhr.js:26
↓ 3 callersFunctionestimateDataURLDecodedBytes
(url)
lib/helpers/estimateDataURLDecodedBytes.js:10
↓ 3 callersFunctionformDataToJSON
* It takes a FormData object and returns a JavaScript object * * @param {string} formData The FormData object to convert to JSON. * * @returns {Ob
lib/helpers/formDataToJSON.js:49
↓ 3 callersFunctionisCancel
(value)
lib/cancel/isCancel.js:3
↓ 3 callersFunctionmatchHeaderValue
(context, value, header, filter, isHeaderNameFilter)
lib/core/AxiosHeaders.js:35
↓ 3 callersFunctionmerge
* Accepts varargs expecting each argument to be an object, then * immutably merges the properties of each object and returns result. * * When multi
lib/utils.js:406
↓ 3 callersFunctionparseProtocol
(url)
lib/helpers/parseProtocol.js:3
↓ 3 callersMethodrespondWith
({ status = 200, statusText = 'OK', responseText = '', response = null, responseHeaders =
tests/browser/interceptors.browser.test.js:55
↓ 3 callersFunctionrun
( method: 'delete' | 'head' | 'options' | 'put' | 'patch', expected: string )
tests/smoke/bun/tests/fetch.smoke.test.ts:79
↓ 3 callersFunctionrunCommand
(command, args, options)
tests/module/cjs/tests/helpers/run-command.cjs:5
↓ 3 callersFunctiontoByteStringHeaderObject
(headers)
lib/helpers/sanitizeHeaderValue.js:52
↓ 3 callersFunctionwaitForRequest
(timeoutMs = 1000)
tests/browser/interceptors.browser.test.js:108
↓ 2 callersFunction_onFinish
(e)
lib/helpers/trackStream.js:50
↓ 2 callersFunctionabort
(reason)
lib/adapters/http.js:485
↓ 2 callersMethodabort
(err)
lib/cancel/CancelToken.js:108
↓ 2 callersFunctionasyncDecorator
(fn)
lib/helpers/progressEventReducer.js:52
↓ 2 callersFunctionbuildLinks
(url, bypass = false)
docs/scripts/process-sponsors.js:148
↓ 2 callersFunctionclearConnectPhaseTimer
()
lib/adapters/http.js:496
↓ 2 callersFunctioncombineURLs
(baseURL, relativeURL)
lib/helpers/combineURLs.js:11
↓ 2 callersFunctioncomposeSignals
(signals, timeout)
lib/helpers/composeSignals.js:5
↓ 2 callersFunctioncreateFetchMock
( responseFactory?: (input: any, init: any) => Response | Promise<Response> )
tests/smoke/deno/tests/fetch.smoke.test.ts:4
↓ 2 callersFunctioncreateFetchMock
( responseFactory?: (input: unknown, init: RequestInit) => Response | Promise<Response> )
tests/smoke/bun/tests/fetch.smoke.test.ts:4
↓ 2 callersFunctioncreateTempFixture
(suiteRoot, name, sourcePath, tsconfig, packageJson)
tests/module/esm/tests/helpers/fixture.js:4
↓ 2 callersFunctiondone
(value, isRejected)
lib/adapters/http.js:352
↓ 2 callersFunctionenv
(fetch: any)
tests/smoke/deno/tests/fetch.smoke.test.ts:41
↓ 2 callersFunctionenv
(fetch: typeof globalThis.fetch)
tests/smoke/bun/tests/fetch.smoke.test.ts:41
↓ 2 callersFunctionflush
()
lib/helpers/throttle.js:39
↓ 2 callersFunctionformDataToStream
(form, headersHandler, options)
lib/helpers/formDataToStream.js:68
↓ 2 callersFunctionfromDataURI
(uri, asBlob, options)
lib/helpers/fromDataURI.js:21
↓ 2 callersFunctiongenerateReadable
(length = 1024 * 1024, chunkSize = 10 * 1024, sleep = 50)
tests/setup/server.js:165
↓ 2 callersFunctiongetFetch
(config)
lib/adapters/fetch.js:527
↓ 2 callersMethodgetHeaders
()
tests/unit/adapters/http.test.js:3891
↓ 2 callersFunctiongetRequestMeta
(input: any, init: any)
tests/smoke/deno/tests/fetch.smoke.test.ts:28
↓ 2 callersFunctiongetRequestMeta
(input: unknown, init: RequestInit = {})
tests/smoke/bun/tests/fetch.smoke.test.ts:28
↓ 2 callersMethodgetSession
(authority, options)
lib/helpers/Http2Sessions.js:16
↓ 2 callersFunctiongetSponsorTier
(sponsor)
docs/scripts/process-sponsors.js:175
↓ 2 callersFunctionhandleFormData
(req)
tests/setup/server.js:145
↓ 2 callersFunctioninvoke
(args, now = Date.now())
lib/helpers/throttle.js:13
↓ 2 callersFunctionisAbsoluteURL
(url)
lib/helpers/isAbsoluteURL.js:10
↓ 2 callersFunctionisAxiosError
(payload)
lib/helpers/isAxiosError.js:12
↓ 2 callersFunctionisIPv4Loopback
(host)
lib/helpers/shouldBypassProxy.js:3
↓ 2 callersFunctionkindOfTest
(type)
lib/utils.js:16
↓ 2 callersFunctionnormalizeValue
(value)
lib/core/AxiosHeaders.js:13
↓ 2 callersFunctionprintInfoMessage
(message)
docs/scripts/utils.js:7
↓ 2 callersFunctionprogressEventDecorator
(total, throttled)
lib/helpers/progressEventReducer.js:37
↓ 2 callersFunctionremoveBrackets
* It removes the brackets from the end of a string * * @param {string} key - The key of the parameter. * * @returns {string} the key without the b
lib/helpers/toFormData.js:26
↓ 2 callersMethodrespondWith
({ status = 200, statusText = 'OK', responseText = '', responseHeaders = '' } = {})
tests/browser/instance.browser.test.js:42
↓ 2 callersMethodrespondWith
({ status = 200, statusText = 'OK', responseText = '', response = null, headers = {},
tests/browser/requests.browser.test.js:51
↓ 2 callersFunctionrunCommand
(command, args = [], options = {})
tests/module/esm/tests/helpers/run-command.js:5
next →1–100 of 645, ranked by callers