index.js
function forwardedResolver(ctx) {
  const header = ctx.request.header['forwarded'];

  if (!header) {
    return false;
  } else {
    const forwarded = parseForwarded(header);
    return forwarded.proto === 'https';
  }
}
function forwardedResolver(ctx) {
  const header = ctx.request.header['forwarded'];

  if (!header) {
    return false;
  } else {
    const forwarded = parseForwarded(header);
    return forwarded.proto === 'https';
  }
}
function forwardedResolver ( ctx ) { const header = ctx . request . header [ 'forwarded' ] ; if ( ! header ) { return false ; } else { const forwarded = parseForwarded ( header ) ; return forwarded . proto === 'https' ; } }
Resolver for `Forwarded` header see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded
Resolver for Forwarded header see https : // developer . mozilla . org / en - US / docs / Web / HTTP / Headers / Forwarded