code: function extractHeaders(options) {
      let headers = {};
      if (options && options.headers) {
          headers = options.headers;
          delete options.headers;
      }
      return headers;
  }
docs: Extract headers from options object