Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composable middleware #29

Open
akheron opened this issue Sep 22, 2020 · 0 comments
Open

Composable middleware #29

akheron opened this issue Sep 22, 2020 · 0 comments

Comments

@akheron
Copy link
Owner

akheron commented Sep 22, 2020

Add something like:

const combinedMw = composeMiddleware(mw1).use(mw2)

combinedMw could then be used like normal middleware, and it would combine the results and responses of mw1 and mw2.

Not sure yet if this would have practical use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant