Interface HttpClientPort

All Known Implementing Classes:
OkHttpClientAdapter

public interface HttpClientPort
Port for HTTP client operations.
  • Method Details

    • downloadContent

      String downloadContent(String url)
      Downloads content from a URL.
      Parameters:
      url - URL to download from
      Returns:
      content as string
      Throws:
      HttpClientPort.HttpDownloadException - if download fails
    • isAccessible

      boolean isAccessible(String url)
      Checks if a URL is accessible.
      Parameters:
      url - URL to check
      Returns:
      true if accessible, false otherwise