Interface IHttpClient<T>

Type Parameters:
T - The type of response data expected.
All Known Implementing Classes:
HttpClient

public interface IHttpClient<T>
An interface representing an HTTP client for performing HTTP requests and receiving responses.
  • Method Details

    • perform

      AbstractHttpResponse<T> perform(String path, String apiKey, HttpMethod method, String payload)
      Perform an HTTP request with the specified path, method, and payload.
      Parameters:
      path - The path or endpoint of the request.
      apiKey - The API Key used to authenticate the request.
      method - The HTTP method (GET, POST, PUT, DELETE, etc.).
      payload - The payload or data to send with the request.
      Returns:
      An AbstractHttpResponse representing the response from the server.