lib/api/request.js
function RequestApi(constructorOptions) {

    LOG.debug('Instantiating new Request object');
    LOG.debug('Validating options');

    try {

        this.options =
            new requestOptions.Constructor().validate(constructorOptions);

    } catch (err) {

        LOG.error('Received error: %s', err);

        throw(
            err
        );

    }

    this.requests = [];
    this.batchId = 1;

}
function RequestApi(constructorOptions) {

    LOG.debug('Instantiating new Request object');
    LOG.debug('Validating options');

    try {

        this.options =
            new requestOptions.Constructor().validate(constructorOptions);

    } catch (err) {

        LOG.error('Received error: %s', err);

        throw(
            err
        );

    }

    this.requests = [];
    this.batchId = 1;

}
function RequestApi ( constructorOptions ) { LOG . debug ( 'Instantiating new Request object' ) ; LOG . debug ( 'Validating options' ) ; try { this . options = new requestOptions . Constructor ( ) . validate ( constructorOptions ) ; } catch ( err ) { LOG . error ( 'Received error: %s' , err ) ; throw ( err ) ; } this . requests = [ ] ; this . batchId = 1 ; }
Request-handling API

@param {ResponseConstructorOptions} Options for the
constructor
@constructor
@throws {InvalidOptionError}
Request - handling API