I am working on Restful API, in memory we have a Json-format object, customer needs to download this json object with zip file format.
Now I am using Vertx to implement this GET response, the response needs to return a ZIP-format binary data, basically it looks like the following,
JsonObject jsonObject = new JsonObject();
jsonObject.put("a", "a1")
.put("b", "b1");
routingContext
.response()
.setStatusCode(200)
.putHeader("Content-Type", "application/zip")
.....
.....
I have no idea how to implement it with Vertx routingContext, could anybody give points or some example code in order to implement it?