drogonframework / drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows
MIT License
11.06k stars 1.06k forks source link

Feature: Middlewares layer #1945

Closed iago-costa closed 4 months ago

iago-costa commented 5 months ago

Example of Middleware: Verification of the Authorization Token in API rest

Similar feature in Actix for Rust: https://actix.rs/docs/middleware/

nqf commented 4 months ago

https://github.com/drogonframework/drogon/wiki/ENG-05-Filter

https://github.com/drogonframework/drogon/wiki/ENG-12-AOP-Aspect-Oriented-Programming

iago-costa commented 4 months ago

I hadn't seen that documentation about AOP yet. Which is the same as Middleware in other Frameworks. This look so good. Very simple to implement. Thanks. Much more simple which in Actix/Rust.