@FunctionalInterface public interface Route
| Modifier and Type | Method and Description |
|---|---|
Object |
handle(Request request,
Response response)
Invoked when a request is made on this route's corresponding path e.g.
|
Object handle(Request request, Response response) throws Exception
request - The request object providing information about the HTTP requestresponse - The response object providing functionality for modifying the responseException - implementation can choose to throw exceptionCopyright © 2019. All rights reserved.