rawleyfowler / Humming-Bird

A fun and performant web application framework for Raku
MIT License
44 stars 6 forks source link

Add middleware #1

Closed rawleyfowler closed 1 year ago

rawleyfowler commented 1 year ago

The next big step for this project is to implement middleware. A simple and naive way to do it would be to include a List of functions that type Request --> Request as a parameter on the get, post, put ... functions. Then all we have to do is compose all of the functions together and use their result as the input for the handler. But I am open to other implementations.