io.keen.client.java.http.HttpHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of keen-client-java-core Show documentation
Show all versions of keen-client-java-core Show documentation
Java Client Core Library for Keen
package io.keen.client.java.http;
import java.io.IOException;
/**
* Interface which provides an abstraction around making HTTP requests.
*
* @author Kevin Litwack ([email protected])
* @since 2.0.0
*/
public interface HttpHandler {
/**
* Executes the given request and returns the received response.
*
* @param request The {@link Request} to send.
* @throws java.io.IOException If there is an error executing the request or processing the
* response.
* @return The {@link Response} received.
*/
Response execute(Request request) throws IOException;
}