Package com.intuit.karate.http
Class CustomHttpRequestRetryHandler
java.lang.Object
com.intuit.karate.http.CustomHttpRequestRetryHandler
- All Implemented Interfaces:
org.apache.http.client.HttpRequestRetryHandler
public class CustomHttpRequestRetryHandler
extends Object
implements org.apache.http.client.HttpRequestRetryHandler
Calls will retry the call when the client throws a NoHttpResponseException.
This is usually the case when there is steal connection. The retry cause that
the connection is renewed and the second call will succeed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanretryRequest(IOException exception, int executionCount, org.apache.http.protocol.HttpContext context)
-
Constructor Details
-
CustomHttpRequestRetryHandler
-
-
Method Details
-
retryRequest
public boolean retryRequest(IOException exception, int executionCount, org.apache.http.protocol.HttpContext context) - Specified by:
retryRequestin interfaceorg.apache.http.client.HttpRequestRetryHandler
-