#749·Rocket

Typed Error Catchers, Fairings

Author: mmrathCreated Aug 23, 2018Updated Mar 30, 2026
Labelsenhancementrequest

What I want is to inspect every request and if it is anything but POST to /api/auth/register or /api/auth/login then check for for auth header. If header is not present, then reply 401. I looked at Fairing - but Fairing cant respond to requests. I looked at request guard, it looks like for them I need to add a param to every route handler.

Questions

Any questions must include:

  1. The version of Rocket this question is based on, if any. master

  2. What steps you've taken to answer the question yourself. Looked at Fairing and request guard docs

  3. What documentation you believe should include an answer to this question. not sure