Package dev.resms.core.net
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 Summary
Modifier and TypeMethodDescriptionperform(String path, String apiKey, HttpMethod method, String payload) Perform an HTTP request with the specified path, method, and payload.
-
Method Details
-
perform
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
AbstractHttpResponserepresenting the response from the server.
-