Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Function responseDecline

    • The first reason a response's own headers keep it from being kept: a Set-Cookie off the allowlist, private unless principal, no-store, or a Vary other than encoding or cookies. decorate runs it for a public route with an empty allowlist, so any cookie declines there.

      Parameters

      • headers: Headers
      • publicCookies: ReadonlySet<string>
      • principal: boolean

      Returns Decline | null