Closed
Description
The current middleware injection makes it difficult for users to configure the middleware they are injecting, see #341 and #341 (comment).
There is no real advantage to abstracting middleware here, should just let the user configure and attach their own while providing sensible defaults.