Skip to content

Implemented HttpClientHandler to an interface

Muskan Srivastava requested to merge muskans-core-http into master

This MR implements HttpClientHandler to an interface- IHttpClientHandler. Also, changes RETRY_COUNT and REQUEST_CONFIG from being private final to protected static.

We follow the pattern of implementing to the interface across the entire project, hence this MR wants to bring HttpClientHandler to the same line. Moreover, doing so will make the class extensible. Making REQUEST_CONFIG and RETRY_COUNT protected static will allow the extended classes to configure these parameters.

Impact :
This will enable us to: -

  1. Have same coding pattern across project.
  2. Extend HttpClientHandler.
  3. Configure REQUEST_CONFIG and RETRY_COUNT in child classes.

Merge request reports