code: function parseQueryMeta(res) {
    var meta = {};
  
    if (res && res.headers) {
      if (res.headers['x-consul-index']) {
        meta.LastIndex = res.headers['x-consul-index'];
      }
      if (res.headers['x-consul-lastcontact']) {
        meta.LastContact = parseInt(res.headers['x-consul-lastcontact'], 10);
      }
      if (res.headers['x-consul-knownleader']) {
        meta.KnownLeader = res.headers['x-consul-knownleader'] === 'true';
      }
      if (res.headers['x-consul-translate-addresses']) {
        meta.AddressTranslationEnabled = res.headers['x-consul-translate-addresses'] === 'true';
      }
    }
  
    return meta;
  }
docs: Parse query meta