JsonObject r = request.getAsJsonObject();
SimpleHttpClient c = new SimpleHttpClient().on(client);
c.withMethod(HttpRequest.Method.valueOf(getString(r, "method", "GET").toUpperCase()));
String post = getString(r, "post", null);
if (post != null) {
c.post(ByteBuffer.wrap(post.getBytes(Http.UTF8_CHARSET)));
}
String path = getString(r, "path", null);
String host = getString(r, "host", "localhost");
Integer port = getInteger(r, "port", null);