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 Detail

      • executeGet

        RemoteDatasourceDownloader.HttpGetResponse executeGet​(String url)
                                                       throws IOException
        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.