final HttpClient client = vertx.createHttpClient().setHost("localhost").setPort(8282);
vertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() {
public void handle(final HttpServerRequest req) {
System.out.println("Proxying request: " + req.uri());
final HttpClientRequest cReq = client.request(req.method(), req.uri(), new Handler<HttpClientResponse>() {
public void handle(HttpClientResponse cRes) {
System.out.println("Proxying response: " + cRes.statusCode());
req.response().setStatusCode(cRes.statusCode());
req.response().headers().set(cRes.headers());
req.response().setChunked(true);