public Publisher<Void> addReport(HttpServerRequest req, HttpServerResponse resp) {
return req.receive()
.asString()
.doOnNext(string -> {
// todo :: make some handy job with string
System.out.println(string);
})
.flatMap(__ -> resp.status(HttpResponseStatus.OK)
.addHeader(ACCESS_CONTROL_ALLOW_ORIGIN, "*") // CORS
.sendString(Mono.just("")));
}