Interface SimpleHttpHandler

All Superinterfaces:
com.sun.net.httpserver.HttpHandler
All Known Implementing Classes:
FileHandler, PredicateHandler, RootHandler, SSEHandler, ThrottledHandler, TimeoutHandler

public interface SimpleHttpHandler extends com.sun.net.httpserver.HttpHandler
A http handler that uses a SimpleHttpExchange. All handlers in this library can be used with a standard HttpServer.
Note: Http handlers will not throw an exception in the main thread, you must use a try-catch to expose them.
Note: An exchange must be sent or closed, otherwise the connection may resend the request until it gets response or times out.
Since:
5.0.0
Version:
5.0.0
Author:
Katsute
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    handle(com.sun.net.httpserver.HttpExchange exchange)
    void
    Handles an exchange.