INNER CODE UNIT · JavaScript

RemoteCalendar

opentimestamps/javascript-opentimestamps · src/calendar.js:29

class RemoteCalendar {
  /**
   * Create a RemoteCalendar.
   * @param {string} url - The server url.
   */
  constructor (url) {
    this.url = url
    this.headers = {
      Accept: 'application/vnd.opentimestamps.v1',
      'Content-Type': 'application/x-www-form-urlencoded'
    }
    if (!process.browser) { // only in node.js
      this.headers['User-Agent'] = 'javascript-opentimestamps'
    }
  }

  /**
   * This callback is called when the result is loaded.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…