Interface AdditionalHttpClientConfig

All Superinterfaces:
IRequestConfig
All Known Implementing Classes:
DefaultAdditionalHttpConfig

public interface AdditionalHttpClientConfig extends IRequestConfig
Additional configuration for Http client, it should provide all configuration which is independent from making requests
  • Method Details

    • isThrowExceptionOnRequestError

      boolean isThrowExceptionOnRequestError()
      This indicates if HTTP client should throw exception if it encounters status code other than 2**
      Returns:
      boolean if the client should throw an exception on error
    • setThrowExceptionOnRequestError

      void setThrowExceptionOnRequestError(boolean throwExceptionOnRequestError)
      Sets iof the client should throw exceptions when there is error status code in the response
      Parameters:
      throwExceptionOnRequestError - if the client should throw an exception on error