Interface RemoteDatasourceDownloader.IHttpExecutor
- Enclosing class:
RemoteDatasourceDownloader
public static interface RemoteDatasourceDownloader.IHttpExecutor
Interface for executing HTTP GET requests. This allows for custom implementations, such as using different HTTP
clients or mocking the requests in tests.
- Since:
- 8.4.0
-
Method Summary
Modifier and TypeMethodDescriptionexecuteGet(String url) Executes an HTTP GET request to the specified URL.
-
Method Details
-
executeGet
Executes an HTTP GET request to the specified URL.- Parameters:
url- The URL to send the GET request to.- Returns:
- An HttpGetResponse containing the status code and content of the response.
- Throws:
IOException- If an error occurs while executing the request.
-