List of usage examples for io.vertx.core.http HttpClient headNow
@Fluent
default HttpClient headNow(String requestURI, Handler<AsyncResult<HttpClientResponse>> responseHandler)
From source file:examples.HTTPExamples.java
License:Open Source License
public void example32(Vertx vertx) { HttpClient client = vertx.createHttpClient(); // Send a GET request client.getNow("/some-uri", response -> { System.out.println("Received response with status code " + response.statusCode()); });/* ww w . jav a 2s. c o m*/ // Send a GET request client.headNow("/other-uri", response -> { System.out.println("Received response with status code " + response.statusCode()); }); }