}
HttpRequest request = new HttpRequest(a, secure, method, path);
if (post != null) {
request.getHeaders().put(Http.CONTENT_LENGTH, String.valueOf(post.remaining()));
}
onClient.send(request, new HttpClientHandler() {
private HttpResponse response = null;
private InMemoryPost body = null;
@Override
public void ready(ByteBufferHandler write) {