com.github.arteam.embedhttp.HttpHandler Maven / Gradle / Ivy
package com.github.arteam.embedhttp;
/**
* A functional interface which represents a handler for an HTTP request.
* It provides ability to get access to the parameters of the request and
* set-up an HTTP response.
*
* @author Artem Prigoda
* @since 05.06.16
*/
@FunctionalInterface
public interface HttpHandler {
/**
* Handles an HTTP request and builds an HTTP response.
*/
void handle(HttpRequest request, HttpResponse response) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy