Module SimpleHttpServer
Package dev.katsute.simplehttpserver.handler
package dev.katsute.simplehttpserver.handler
Contains handlers that can be use with a
HttpServer
or a SimpleHttpServer
.-
ClassDescriptionHandler that process requests based on the result of a predicate.Redirects a request to a different URL.By default, exchanges will look for the closest matching context for their handler, this consequently means that the root index
/
would catch any requests without a handler instead of returning a code 404.A Server sent events (SSE) handler sends events from the server to a client using antext/event-stream
.Handler that removes itself after a single request, or after a set time, whichever comes first.The timeout handler runs a handler and times out after a set time.