Thursday, 1 August 2019

Introduction to body-parser


‘body-parser’ package provides a middleware that is used to parse the request body before handling it over to the actual router.

Is body-parser handles multi-part requests?
No, to handle multi-part request use one of following packages.
a.   busboy and connect-busboy
b.   multiparty and connect-multiparty
c.    formidable
d.   multer

What are the parsers provided by body-parser?
a.   JSON body parser
b.   Raw body parser
c.    Text body parser
d.   URL-encoded form body parser




Previous                                                    Next                                                    Home

No comments:

Post a Comment