Overload Request's execute method to allow custom CloseableHttpClient
This commit is contained in:
parent
cbe00beb56
commit
6e76a8b380
|
@ -181,7 +181,11 @@ public class Request {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Response execute() throws IOException {
|
public Response execute() throws IOException {
|
||||||
return new Response(internalExecute(Executor.CLIENT, HttpClientContext.create()));
|
return execute(Executor.CLIENT);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Response execute(final CloseableHttpClient client) throws IOException {
|
||||||
|
return new Response(internalExecute(client, HttpClientContext.create()));
|
||||||
}
|
}
|
||||||
|
|
||||||
//// HTTP header operations
|
//// HTTP header operations
|
||||||
|
|
Loading…
Reference in New Issue