8000 "Finalizer" middleware · Issue #460 · nickel-org/nickel.rs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
"Finalizer" middleware #460
Open
Open
@pnathan

Description

@pnathan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0