/**
 * @file Centrally configured web client.
 * @module net/request
 */

'use strict'

// Imports
const requestStandard = require('request-promise-native')

// Configure
const request = requestStandard.defaults()

// Expose
module.exports = request

/**
 * @file Centrally configured web client.
 * @module net/request
 */

'use strict'

// Imports
const userAgent = require('./useragent')
const requestStandard = require('request-promise-native')

// Configure
const request = requestStandard.defaults({
  headers: {
    'User-Agent': userAgent
  }
})

// Expose
module.exports = request

Set user agent for web client
Set user agent for web client
