final CloudEvent<MyCustomEvent> cloudEvent = new CloudEventBuilder<MyCustomEvent>()
.type("My.Cloud.Event.Type")
.id("1234-1234-1234")
.source("/trigger)
.data(new MyCustomEvent(...))
.build();
final HttpClientRequest request = vertx.createHttpClient().post(8080, "localhost", "/");
// write the CloudEvent to the given HTTP Post request object
VertxCloudEvents.create().writeToHttpClientRequest(cloudEvent, request);
``