Loading [Contrib]/a11y/accessibility-menu.js
Back
Close

Dive into Vert.x

CCavalier
2,940 views

Be fluent In Vert.x

With vertex you can use a fluent API. It means multiple methods calls can be chained together. It make code a little bit less verbose.

Let's try to create de response to a request in plain text ("text/plain") who return "Hello world". Be careful: the header size must be definer or chunked. Don't forget to end your request !

One line it
package io.vertx.codingame;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.Future;
import io.vertx.core.http.HttpServer;
/**
* Created by charlotte on 02/03/17.
*/
public class FluentServer extends AbstractVerticle {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants