Example usage for io.vertx.core.http HttpServerResponse write

List of usage examples for io.vertx.core.http HttpServerResponse write

Introduction

In this page you can find the example usage for io.vertx.core.http HttpServerResponse write.

Prototype

void write(String chunk, Handler<AsyncResult<Void>> handler);

Source Link

Document

Same as #write(String) but with an handler called when the operation completes

Usage

From source file:examples.HTTPExamples.java

License:Open Source License

public void example18(HttpServerRequest request) {
    HttpServerResponse response = request.response();
    response.write("hello world!", "UTF-16");
}