@@ -0,0 +1,2235 @@
+package com.blankstyle.vertx.php.http;%0A%0Aimport org.vertx.java.core.buffer.Buffer;%0A%0Aimport com.blankstyle.vertx.php.Handler;%0Aimport com.blankstyle.vertx.php.streams.ExceptionSupport;%0Aimport com.blankstyle.vertx.php.streams.ReadStream;%0Aimport com.caucho.quercus.env.Callback;%0Aimport com.caucho.quercus.env.Env;%0Aimport com.caucho.quercus.env.Value;%0A%0A/**%0A * A PHP compatible implementation of the Vert.x HttpClientResponse.%0A *%0A * @author Jordan Halterman%0A */%0Apublic class HttpClientResponse implements ReadStream, ExceptionSupport %7B%0A%0A  private org.vertx.java.core.http.HttpClientResponse response;%0A%0A  public HttpClientResponse(org.vertx.java.core.http.HttpClientResponse response) %7B%0A    this.response = response;%0A  %7D%0A%0A  public HttpClientResponse(Env env, org.vertx.java.core.http.HttpClientResponse response) %7B%0A    this.response = response;%0A  %7D%0A%0A  @Override%0A  public Value pause(Env env) %7B%0A    response.pause();%0A    return env.wrapJava(this);%0A  %7D%0A%0A  @Override%0A  public Value resume(Env env) %7B%0A    response.resume();%0A    return env.wrapJava(this);%0A  %7D%0A%0A  public Value cookies(Env env) %7B%0A    return env.wrapJava(response.cookies());%0A  %7D%0A%0A  public Value headers(Env env) %7B%0A    return env.wrapJava(response.headers());%0A  %7D%0A%0A  public Value trailers(Env env) %7B%0A    return env.wrapJava(response.trailers());%0A  %7D%0A%0A  public Value netSocket(Env env) %7B%0A    return env.wrapJava(response.netSocket());%0A  %7D%0A%0A  public Value statusCode(Env env) %7B%0A    return env.wrapJava(response.statusCode());%0A  %7D%0A%0A  public Value statusMessage(Env env) %7B%0A    return env.wrapJava(response.statusMessage());%0A  %7D%0A%0A  @Override%0A  public Value dataHandler(Env env, Callback handler) %7B%0A    response.dataHandler(new Handler%3CBuffer%3E(env, handler));%0A    return env.wrapJava(this);%0A  %7D%0A%0A  public Value bodyHandler(Env env, Callback handler) %7B%0A    response.bodyHandler(new Handler%3CBuffer%3E(env, handler));%0A    return env.wrapJava(this);%0A  %7D%0A%0A  @Override%0A  public Value endHandler(Env env, Callback handler) %7B%0A    response.endHandler(new Handler%3CVoid%3E(env, handler));%0A    return env.wrapJava(this);%0A  %7D%0A%0A  @Override%0A  public Value exceptionHandler(Env env, Callback handler) %7B%0A    response.exceptionHandler(new Handler%3CThrowable%3E(env, handler));%0A    return env.wrapJava(this);%0A  %7D%0A%0A%7D%0A

Add HTTP client response handler.