sparckles / Robyn

Robyn is a Super Fast Async Python Web Framework with a Rust runtime.
https://robyn.tech/
BSD 2-Clause "Simplified" License
3.9k stars 198 forks source link

implement middleware chains #828

Open sansyrox opened 1 month ago

sansyrox commented 1 month ago

def fx1():
   ...

def fx2():
  ...

mc = MiddlewareChain(fx1, fx2)

app.before_request("/route", mc)