express 4.x ICF shim, if_http_extension
The ABAP code must set correct status and content types in responses.
npm install express --save-dev
import express from 'express';
import {initializeABAP} from "../output/init.mjs";
import {cl_express_icf_shim} from "../output/cl_express_icf_shim.clas.mjs";
await initializeABAP();
...
app.use(express.raw({type: "*/*"}));
...
app.all(["/abap", "/abap*"], async function (req, res) {
await cl_express_icf_shim.run({req, res, class: "ZCL_HTTP_HANDLER"});
});
...