Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

handling text plain in express 3 via connect

handling text plain in express 3 via connect  using -'node.js,express,connect'

I am using Express 3, and would like to handle text/plain POSTs.

Express 3 uses connect's bodyParser now (I think the old Express code got moved to connect). The documentation for bodyParser gives some details about how to make it support additional file types. And I found an excellent blog post about how handling text/plain was done in old versions of Express).

Should I explicitly require connect (and let node's require cache the modified version)? Or is connect exposed via express somewhere?
connect.bodyParser does not have a 'parse' key.

How can I make Express (via connect) handle text/plain POSTs?

asked Sep 18, 2015 by sumit_jaiswalmca
0 votes

Related Hot Questions

Government Jobs Opening