- All Known Implementing Classes:
DelegatingHandler
public interface Handler
Handler for requests.
-
Method Summary
Modifier and TypeMethodDescription@Nullable IntoResponsehandle(org.microhttp.Request request) Handles the request.
-
Method Details
-
handle
Handles the request.If
nullis returned, that means that the handler is signaling that it does not want to handle theRequest. This would signal that anotherHandlershould be consulted or a default response should be used- Parameters:
request- The request to handle.- Returns:
- Something which can be converted into a response or null.
- Throws:
Exception- If something goes wrong.
-