Not sure of a good solution, the size and amount should arbitrary because there are numerous middleware applications, which is probably not possible in a type safe manner, I'm thinking about an object that pass through handlers, but there could be multiple middlewares that want to add stuff.