Package io.muserver.handlers
Some pre-built handlers for common tasks such as file handling.
-
Interface Summary Interface Description ResourceCustomizer A hook to change responses for static resources. -
Class Summary Class Description CORSHandler A handler that adds CORS headers to responses.CORSHandlerBuilder Used to create a handler that puts appropriate CORS headers on requests.HttpsRedirector Sends any HTTP requests to the same HTTPS address at the supplied port and optionally enables Strict-Transport-Security (HSTS)HttpsRedirectorBuilder A builder for a handler that sends any HTTP requests to the same HTTPS address at the supplied port and optionally enables Strict-Transport-Security (HSTS)ResourceHandler A handler to serve static content.ResourceHandlerBuilder Used to create aResourceHandler
for serving static files.ResourceType Used by theResourceHandler
to specify a mapping between file name extensions and mime types, and whether they should be gzipped or not.