INNER CODE UNIT · JavaScript

terminus

godaddy/terminus · lib/terminus.js:164

function terminus (server, options = {}) {
  // Supporting case insensitive routes by lowering case all routes.
  if (options.caseInsensitive && options.healthChecks) {
    const healthChecks = {}

    for (const key in options.healthChecks) {
      healthChecks[key.toLowerCase()] = options.healthChecks[key]
    }

    options.healthChecks = healthChecks
  }

  const {
    signal = 'SIGTERM',
    signals = [],
    useExit0 = false,
    timeout = 1000,
    healthChecks = {},

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…