use of org.asynchttpclient.RequestBuilder in project async-http-client by AsyncHttpClient.
the class SimpleAsyncHttpClient method post.
public Future<Response> post(BodyGenerator bodyGenerator) throws IOException {
RequestBuilder r = rebuildRequest(requestBuilder.build());
r.setMethod("POST");
r.setBody(bodyGenerator);
return execute(r, null, null);
}
use of org.asynchttpclient.RequestBuilder in project async-http-client by AsyncHttpClient.
the class SimpleAsyncHttpClient method put.
public Future<Response> put(BodyGenerator bodyGenerator, ThrowableHandler throwableHandler) throws IOException {
RequestBuilder r = rebuildRequest(requestBuilder.build());
r.setMethod("PUT");
r.setBody(bodyGenerator);
return execute(r, null, throwableHandler);
}
use of org.asynchttpclient.RequestBuilder in project async-http-client by AsyncHttpClient.
the class SimpleAsyncHttpClient method options.
public Future<Response> options() throws IOException {
RequestBuilder r = rebuildRequest(requestBuilder.build());
r.setMethod("OPTIONS");
return execute(r, null, null);
}
use of org.asynchttpclient.RequestBuilder in project async-http-client by AsyncHttpClient.
the class SimpleAsyncHttpClient method put.
public Future<Response> put(BodyGenerator bodyGenerator, BodyConsumer bodyConsumer) throws IOException {
RequestBuilder r = rebuildRequest(requestBuilder.build());
r.setMethod("PUT");
r.setBody(bodyGenerator);
return execute(r, bodyConsumer, null);
}
use of org.asynchttpclient.RequestBuilder in project async-http-client by AsyncHttpClient.
the class SimpleAsyncHttpClient method delete.
public Future<Response> delete() throws IOException {
RequestBuilder r = rebuildRequest(requestBuilder.build());
r.setMethod("DELETE");
return execute(r, null, null);
}
Aggregations