mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-17 07:26:47 +00:00
Overload Request's execute method to allow custom CloseableHttpClient
This commit is contained in:
parent
cbe00beb56
commit
6e76a8b380
@ -181,7 +181,11 @@ ClassicHttpResponse internalExecute(
|
||||
}
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user