One other thing, I know that user and library-defined middleware will want to 
expose data to request handlers, so for that, I opted to use a Table of boxed 
values that can be accessed by handlers. This allows handlers to write data 
using a string key, and then retrieve them if they know the type. This design 
allows middleware to write to the table and then expose typed getters to expose 
them so that handlers don't have to deal with knowing the types themselves. 
It's not a fantastic solution, but it's the best one I can think of.

Reply via email to