-
Notifications
You must be signed in to change notification settings - Fork 22
Description
So I'm working to land expressjs/express#3708 in the 4.17 branch now and I thought that express.raw() seems like a strange name, which made me think that handing the middlewares right off the express export itself is maybe weird?
I was thinking maybe we could put them under like .middleware or, if not, corral the parsers under .bodyParser maybe.
The following are the current middlewares:
express.jsonexpress.urlencodedexpress.staticexpress.query
The following are the 4.17 proposed middlewares:
express.rawexpress.text
So I was thinking we maybe could do
express.middleware.staticetc.express.staticandexpress.bodyParser.json, etc.- keep as-is
Maybe something else, even.
@LinusU @wesleytodd do you have any thoughts? This wouldn't block express.raw unless there was a general agreement like express.middleware.raw or something and the new ones could be landed under the new name up front and the rest moved instead of moving them all later, idk.