MCPcopy
hub / github.com/axios/axios / emit

Method emit

tests/browser/progress.browser.test.js:63–66  ·  view source on GitHub ↗
(type, target = 'request', event = {})

Source from the content-addressed store, hash-verified

61 }
62
63 emit(type, target = 'request', event = {}) {
64 const listeners = target === 'upload' ? this._uploadListeners : this._listeners;
65 (listeners[type] || []).forEach((listener) => listener(event));
66 }
67
68 respondWith({
69 status = 200,

Callers 11

respondWithMethod · 0.95
pushChunkMethod · 0.80
abortFunction · 0.80
http.jsFile · 0.80
createFakeSessionFunction · 0.80
endMethod · 0.80
destroyMethod · 0.80
http.test.jsFile · 0.80
requestFunction · 0.80
requestFunction · 0.80

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected