Package io.karatelabs.http
Class DefaultHttpClientFactory
java.lang.Object
io.karatelabs.http.DefaultHttpClientFactory
- All Implemented Interfaces:
HttpClientFactory
Default implementation of
HttpClientFactory that creates a new
ApacheHttpClient instance for each call.
This is the standard behavior for functional tests where each test scenario should have an isolated HTTP client with its own configuration and state.
For performance testing with connection pooling, use a custom factory implementation (e.g., PooledHttpClientFactory in karate-gatling).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultHttpClientFactory
public DefaultHttpClientFactory()
-
-
Method Details
-
create
Description copied from interface:HttpClientFactoryCreates a new HttpClient instance.- Specified by:
createin interfaceHttpClientFactory- Returns:
- a new HttpClient instance
-