You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working through a relatively full featured backend api server, which includes in the middleware stack, among other things, things like:
api keys
logging
let's walk through the problem:
the api keys middleware will check validity of the api key- if good, it calls next_middleware(), if not good, it calls send(), without calling next_middleware.
But, I also have a logging middleware that should track both the incoming URL and the outgoing status code.
now, as per spect, next_middleware ends the middleware call tree, but, I need this finalizer code (logging) to execute.
thoughts?
The text was updated successfully, but these errors were encountered:
I am working through a relatively full featured backend api server, which includes in the middleware stack, among other things, things like:
let's walk through the problem:
the api keys middleware will check validity of the api key- if good, it calls
next_middleware()
, if not good, it callssend()
, without calling next_middleware.But, I also have a logging middleware that should track both the incoming URL and the outgoing status code.
now, as per spect, next_middleware ends the middleware call tree, but, I need this finalizer code (logging) to execute.
thoughts?
The text was updated successfully, but these errors were encountered: