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