That's what Vert.x core tests: https://github.com/eclipse/vert.x/blob/master/vertx-testsuite/src/test/java/vertx/tests/core/http/HttpTestClient.java#L2420