docs: function formatHeaders(headers, sensitiveHeaders) {
      const retval = [];
      try {
          if (!headers || typeof headers !== 'object' || Object.keys(headers).length === 0) {
              return retval;
          }
  
          for (const header in headers) {
              if (header && headers[header] && sensitiveHeaders.indexOf(header) === -1) {
                  retval.push({name: header, value: headers[header]});
              }
          }
          return retval;
      } catch (e) {
          return retval;
      }
  }