comum/default_headers.js
function default_headers(class_context) {
  class_context = class_context || {};
  let headers   = {};

  if (class_context.token) {
    headers.Token = class_context.token;
  }

  if (!isBrowser) {
    headers['User-Agent'] = `Tago-Nodelib-${pkg.version}`;
  }

  return headers;
}
function default_headers(class_context) {
  class_context = class_context || {};
  let headers   = {};

  if (class_context.token) {
    headers.Token = class_context.token;
  }

  if (!isBrowser) {
    headers['User-Agent'] = `Tago-Nodelib-${pkg.version}`;
  }

  return headers;
}
function default_headers ( class_context ) { class_context = class_context || { } ; let headers = { } ; if ( class_context . token ) { headers . Token = class_context . token ; } if ( ! isBrowser ) { headers [ 'User-Agent' ] = ` ${ pkg . version } ` ; } return headers ; }
default_headers
Generate default headers
@private
@return {JSON}
default_headers Generate default headers