Content type middleware applicator
[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
Input ports
app ID:
string
Identifies the Express app to apply the middleware on.
params:
Output ports
app ID:
string
error:
{"error": string}
done:
any
Last updated