All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.keen.client.java.http.HttpHandler Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
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;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy