Middlewares for the most popular frameworks #199
Secreto31126
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It has been a while since this was discussed, but I will finally start working on middlewares for the library. This feature will simplify the implementation process for the most common http frameworks, black boxing the complexity required to make the library work 100%.
However, I don't want this feature to be a "magic solution" that just works and pollutes your endpoints. Someone else can write such library on npm. The methods will be non restrictive, meaning that although some complexity would be hidden, the user still has control over their framework.
Here's a pseudo code of the expected result:
(As you can see, the method will receive the http request directly rather than needing to send the correct arguments. However, the developer still has to handle the status code, giving the opportunity to customize the server's response).
With that in mind, I would love to know which frameworks you would like to have middlewares for. The list so far includes Express, AdonisJS and Standar API (Deno, Bun, kinda Node's http).
Let me know in the comments down below!
Beta Was this translation helpful? Give feedback.
All reactions