
io.github.espresso4j.espresso.Espresso Maven / Gradle / Ivy
package io.github.espresso4j.espresso;
import java.util.function.Consumer;
/**
* The core function of Espresso.
*
* It take a request object and returns a response.
*
*/
@FunctionalInterface
public interface Espresso {
Response call(Request request);
@FunctionalInterface
interface Async {
void call(Request request, Consumer sendResponse, Consumer raiseException);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy