Package io.mochaapi.client
Interface HttpClientEngine
- All Known Implementing Classes:
DefaultHttpClientEngine
public interface HttpClientEngine
Interface for executing HTTP requests.
Provides a way to abstract the underlying HTTP client implementation.
-
Method Summary
Modifier and TypeMethodDescriptionexecute(ApiRequest request) Executes an HTTP request and returns the response.
-
Method Details
-
execute
Executes an HTTP request and returns the response.- Parameters:
request- the configured request- Returns:
- ApiResponse containing the result
- Throws:
ApiException- if the request fails
-