New Version: v1.1.0 (HTTP.jl v1+ & Middleware update) #61
Replies: 1 comment 2 replies
-
Quick update, After re-reading those rules I thought of a more straightforward way to implement middleware flows. I already have a working prototype and am working on updating the docs to reflect this change in v1.1.1 Updated Middleware rules: All middleware is additive, any middleware defined at the global, router, our route level will get combined Regardless if set or not, Middleware will always get executed in the following order:
Well, what if we don't want previous layers of middleware to run? For example, setting
|
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
This release has been a long time in the making and includes some major improvements:
After upgrading the package to work with HTTP.jl v1+ this opened up a couple of opportunities to address the rest of the points in this list. The coolest improvement in my opinion is #2, which allows users to assign middleware at all levels. This feature alone makes it one of the few frameworks with this kind of flexibility.
You can read more about how to use router middleware in the guide:
https://ndortega.github.io/Oxygen.jl/stable/tutorial/bigger_applications/#Middleware-and-router()
Beta Was this translation helpful? Give feedback.
All reactions