I have not found a way to see the current value, but if you haven't provided a ConnectionConfig
when building your HttpClient
, it uses ConnectionConfig.DEFAULT
which has a bufferSize
of 8192
.
You can specify a custom buffer size when building your HttpClient
. For example,
int bufferSize = 42;
ConnectionConfig config = ConnectionConfig.custom().setBufferSize(bufferSize).build();
CloseableHttpClient httpClient = HttpClientBuilder.create()
.setDefaultConnectionConfig(config)
.build();