Content type middleware applicator
Last updated
Last updated
[sdks/expressjs/utils/Content type middleware applicator]
Tells the Express app identified by app ID
to use a middleware that corresponds to the request's content type.
Defaults to "text".
Example A:
"ID"@1 received via app ID
{"contentType": "json"}@1 received via params
Express applies the "json" middleware
"ID"@1 sent via app ID
(output)
Keywords: content type, request, apply, header, http
app ID: string
Identifies the Express app to apply the middleware on.
params:
app ID: string
error: {"error": string}
done: any