function inferFeatures (source, options) {
  const fullMethod = fullMethods.includes(source.method)
  const inlineMethod = inlineMethods.includes(source.method)
  const headers = isSet(source.queryObj)
  const query = options.expandQuery && isSet(source.queryObj)
  const raw = isSet(source.postData.text)
  const form = options.expandBody && isSet(source.postData.paramsObj)
  const json = options.expandBody && isSet(source.postData.jsonObj)
  const body = !form && !json && raw

  return { fullMethod, inlineMethod, headers, query, raw, form, json, body }
}
/**
 *
 * @param {object} source HAR object processed by the library
 * @param {Options} options Options passed to the generator function
 * @returns {Features}
 */
@param {object} source HAR object processed by the library
@param {Options} options Options passed to the generator function
@returns {Features}
@param { object } source HAR object processed by the library @param { Options } options Options passed to the generator function @returns { Features }
function inferFeatures (source, options) {
  const fullMethod = fullMethods.includes(source.method)
  const inlineMethod = inlineMethods.includes(source.method)
  const headers = isSet(source.queryObj)
  const query = options.expandQuery && isSet(source.queryObj)
  const raw = isSet(source.postData.text)
  const form = options.expandBody && isSet(source.postData.paramsObj)
  const json = options.expandBody && isSet(source.postData.jsonObj)
  const body = !form && !json && raw
  return { fullMethod, inlineMethod, headers, query, raw, form, json, body }
}
function inferFeatures ( source , options ) { const fullMethod = fullMethods . includes ( source . method ) const inlineMethod = inlineMethods . includes ( source . method ) const headers = isSet ( source . queryObj ) const query = options . expandQuery && isSet ( source . queryObj ) const raw = isSet ( source . postData . text ) const form = options . expandBody && isSet ( source . postData . paramsObj ) const json = options . expandBody && isSet ( source . postData . jsonObj ) const body = ! form && ! json && raw return { fullMethod , inlineMethod , headers , query , raw , form , json , body } }
@param {object} source HAR object processed by the library
 @param {Options} options Options passed to the generator function
 @returns {Features}
@param { object } source HAR object processed by the library @param { Options } options Options passed to the generator function @returns { Features }