Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@matzew
Created June 25, 2018 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matzew/7d57ffa3fa98e0f32202c2b9ca89a201 to your computer and use it in GitHub Desktop.
Save matzew/7d57ffa3fa98e0f32202c2b9ca89a201 to your computer and use it in GitHub Desktop.
        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>>>() {} ));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment