index.js
function setup (request, options, ...args) {
  const len = request.headers['content-length']
  const encoding = request.headers['content-encoding'] || 'identity'
  return Object.assign({}, options, {
    encoding: options.encoding || 'utf-8',
    limit: options.limit || '1mb',
    length: (len && encoding === 'identity') ? ~~len : options.length
  }, ...args)
}
function setup (request, options, ...args) {
  const len = request.headers['content-length']
  const encoding = request.headers['content-encoding'] || 'identity'
  return Object.assign({}, options, {
    encoding: options.encoding || 'utf-8',
    limit: options.limit || '1mb',
    length: (len && encoding === 'identity') ? ~~len : options.length
  }, ...args)
}
function setup ( request , options , ... args ) { const len = request . headers [ 'content-length' ] const encoding = request . headers [ 'content-encoding' ] || 'identity' return Object . assign ( { } , options , { encoding : options . encoding || 'utf-8' , limit : options . limit || '1mb' , length : ( len && encoding === 'identity' ) ? ~ ~ len : options . length } , ... args ) }
Clone and setup default options.

@param {HttpIncomingMessage} request
@param {Object} options
@param {Object} mixin
@return {Object}
@api private
Clone and setup default options .