express.http.HttpRequestHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-express Show documentation
Show all versions of java-express Show documentation
HTTP Framework based on expressjs, no dependencies, simple usage.
The newest version!
package express.http;
import express.http.request.Request;
import express.http.response.Response;
/**
* @author Simon Reinisch
* Interface to handle an http-request
*/
@FunctionalInterface
public interface HttpRequestHandler {
/**
* Handle an http-request
*
* @param req - The request object
* @param res - The response object
*/
void handle(Request req, Response res);
}