@marblejs/core
to be installed.BodyParserOptions
RequestBodyParser
Array<string>
type
option is used to determine what media type the middleware will parse. It is passed directly to the type-is library and this can be an extension name (like json
), a mime type (like application/json
), or a mime type with a wildcard (like */*
or */json
). Defaults to */*
.POST /api/login
endpoint:bodyParser$
middleware, the app will intercept the following payload object:req.body
object are untrusted (unknown) and should be validated before trusting.req.body
to JSON object.req.body
to JSON object.req.body
to string.req.body
to Buffer.RequestBodyParser
interface. The example below shows how the jsonParser
looks underneath.