# What is the difference between different apache-httpclient5 config provided by Apache HttpClient 5?

**URL:** <https://forum.opensearch.org/t/what-is-the-difference-between-different-apache-httpclient5-config-provided-by-apache-httpclient-5/17774>\
**Category:** OpenSearch Client Libraries\
**Tags:** opensearch-java\
**Created:** [February 7, 2024, 6:04am UTC](https://forum.opensearch.org/t/what-is-the-difference-between-different-apache-httpclient5-config-provided-by-apache-httpclient-5/17774 "2024-02-07T06:04:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![reta](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@reta](https://forum.opensearch.org/u/reta)\
**Post date:** [February 7, 2024, 1:38pm UTC](https://forum.opensearch.org/t/what-is-the-difference-between-different-apache-httpclient5-config-provided-by-apache-httpclient-5/17774/2 "2024-02-07T13:38:05Z")

</div>

Hey @chintan_patel

There are indeed many of those, the ones `ApacheHttpClient5TransportBuilder` makes explicit use of at the moment are:

```auto
RequestConfig: Configure the request made by the http client. 
- setConnectTimeout(Timeout): Timeout for the request made by the http client to get a connection from the host. 
- setResponseTimeout(Timeout): Timeout for the request made by the http client to get a response from the host.

```

These and other parameters could be set using `HttpClientConfigCallback` while building Apache HttpClient 5 based transport and solely depend on what application or service need. Thanks you.

---

_[View the full topic](https://forum.opensearch.org/t/what-is-the-difference-between-different-apache-httpclient5-config-provided-by-apache-httpclient-5/17774)._
