Proposal to have middleware accept the handler at the time the request is being handled instead of wrapping the handler function in a closure. The middleware could then be kept in a data structure and manipulated at any time.
Need to test to see if there's any significant performance impact.
Proposal to have middleware accept the handler at the time the request is being handled instead of wrapping the handler function in a closure. The middleware could then be kept in a data structure and manipulated at any time.
Need to test to see if there's any significant performance impact.