es6/api/client/index.js
/**
 * Create the HTTP options object to be used in HTTP requests.
 * @param {object} options HTTP client options.
 */
Create the HTTP options object to be used in HTTP requests.
@param {object} options HTTP client options.
Create the HTTP options object to be used in HTTP requests . @param { object } options HTTP client options .
function createHttpOptions(options) {
  const { httpOptions = {} } = options
  let { query = {} } = httpOptions
  const queryApiOptions = _omitBy({
    level: _get(options, 'level'),
    pretty: _get(options, 'pretty'),
    timings: _get(options, 'timings'),
    transaction: _get(options, 'transaction'),
  }, _isUndefined)
  query = _assign({}, query, queryApiOptions)
  return _assign({}, httpOptions, { query })
}
function createHttpOptions ( options ) { const { httpOptions = { } } = options let { query = { } } = httpOptions const queryApiOptions = _omitBy ( { level : _get ( options , 'level' ) , pretty : _get ( options , 'pretty' ) , timings : _get ( options , 'timings' ) , transaction : _get ( options , 'transaction' ) , } , _isUndefined ) query = _assign ( { } , query , queryApiOptions ) return _assign ( { } , httpOptions , { query } ) }
Create the HTTP options object to be used in HTTP requests.
Create the HTTP options object to be used in HTTP requests .
// Create the API query and remove any undefined values.