HttpClient client = vertx.createHttpClient();
CloudEvent<Map<String, String>> ce = null;
client.post("http://mycloud.com/channel")
.putHeader("Content-Type", MimeMapping.getMimeTypeForExtension("json"))
.end(Json.decodeValue((Buffer) ce, new TypeReference<CloudEvent<Map<String, String>>>() {} ));
Created
June 25, 2018 12:13
-
-
Save matzew/7d57ffa3fa98e0f32202c2b9ca89a201 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment