async run(request, opts) {
    opts = opts ? Object.assign({}, opts) : {};
    request = Object.assign({}, request);
    if (request.config) {
      request.config = Object.assign({}, request.config);
    }
    opts = this._prepareRequestOptions(request, opts);
    try {
      const hosts = await this._readHosts();
      /* eslint-disable-next-line require-atomic-updates */
      opts.hosts = hosts;
      const connection = await this._prepareRequest(request, opts);
      return await this._makeConnection(connection);
    } catch (cause) {
      this._errorHandler(cause, request.id);
    }
  }
/**
   * Runs the request with Electron's `SocketRequest` class.
   * @param {Object} request ARC request object
   * @param {?Object} opts Additional request options:
   * - timeout {Number} - Timeout in milliseconds
   * - followRedirects {Boolean} Note, as of ARC 13 this object is part of
   * the request object under `config` property.
   * @return {Promise} A promise when the request is started with the socket
   * library
   */
Runs the request with Electron's `SocketRequest` class.
@param {Object} request ARC request object
@param {?Object} opts Additional request options:
- timeout {Number} - Timeout in milliseconds
- followRedirects {Boolean} Note, as of ARC 13 this object is part of
the request object under `config` property.
@return {Promise} A promise when the request is started with the socket
library
Runs the request with Electron ' s ` SocketRequest ` class . @param { Object } request ARC request object @param { ?Object } opts Additional request options : - timeout { Number } - Timeout in milliseconds - followRedirects { Boolean } Note as of ARC 13 this object is part of the request object under ` config ` property . @return { Promise } A promise when the request is started with the socket library
async run(request, opts) {
    opts = opts ? Object.assign({}, opts) : {};
    request = Object.assign({}, request);
    if (request.config) {
      request.config = Object.assign({}, request.config);
    }
    opts = this._prepareRequestOptions(request, opts);
    try {
      const hosts = await this._readHosts();
      opts.hosts = hosts;
      const connection = await this._prepareRequest(request, opts);
      return await this._makeConnection(connection);
    } catch (cause) {
      this._errorHandler(cause, request.id);
    }
  }
async run ( request , opts ) { opts = opts ? Object . assign ( { } , opts ) : { } ; request = Object . assign ( { } , request ) ; if ( request . config ) { request . config = Object . assign ( { } , request . config ) ; } opts = this . _prepareRequestOptions ( request , opts ) ; try { const hosts = await this . _readHosts ( ) ; opts . hosts = hosts ; const connection = await this . _prepareRequest ( request , opts ) ; return await this . _makeConnection ( connection ) ; } catch ( cause ) { this . _errorHandler ( cause , request . id ) ; } }
Runs the request with Electron's `SocketRequest` class.
Runs the request with Electron ' s ` SocketRequest ` class .
/* eslint-disable-next-line require-atomic-updates */