Static
JSONParserStatic
RawReturns middleware that parses all bodies as a Buffer and only looks at requests where the Content-Type header matches the type option.
Optional
options: Optionsbody parser options
Static
TextReturns middleware that parses all bodies as a string and only looks at requests where the Content-Type header matches the type option.
Optional
options: OptionsTexttext body parser options
Static
URLEncodedReturns middleware that only parses urlencoded bodies and only looks at requests where the Content-Type header matches the type option
Optional
options: OptionsUrlencodedurl encoded body parser options
Returns middleware that only parses json and only looks at requests where the Content-Type header matches the type option.