MCPcopy
hub / github.com/appium/appium / request

Method request

lib/jsonwp-proxy/proxy.js:59–67  ·  view source on GitHub ↗

* Performs requests to the downstream server * * @private - Do not call this method directly, * it uses client-specific arguments and responses! * * @param {AxiosRequestConfig} requestConfig * @returns {AxiosResponse}

(requestConfig)

Source from the content-addressed store, hash-verified

57 * @returns {AxiosResponse}
58 */
59 async request (requestConfig) {
60 const reqPromise = axios(requestConfig);
61 this._activeRequests.push(reqPromise);
62 try {
63 return await reqPromise;
64 } finally {
65 _.pull(this._activeRequests, reqPromise);
66 }
67 }
68
69 getActiveRequestsCount () {
70 return this._activeRequests.length;

Callers 1

proxyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected