Uses of Class
io.muserver.handlers.CORSHandlerBuilder
-
Packages that use CORSHandlerBuilder Package Description io.muserver.handlers Some pre-built handlers for common tasks such as file handling.io.muserver.rest This package contains the JAX-RS implementation for mu-server. -
-
Uses of CORSHandlerBuilder in io.muserver.handlers
Methods in io.muserver.handlers that return CORSHandlerBuilder Modifier and Type Method Description static CORSHandlerBuilder
CORSHandlerBuilder. corsHandler()
A helper for creating a CORS handlerCORSHandlerBuilder
CORSHandlerBuilder. withAllowedMethods(Method... methods)
Specifies the headers allowed for CORS requests.CORSHandlerBuilder
CORSHandlerBuilder. withCORSConfig(CORSConfig corsConfig)
Sets the CORS configuration for the handlerCORSHandlerBuilder
CORSHandlerBuilder. withCORSConfig(CORSConfigBuilder corsConfig)
Sets the CORS configuration for the handler -
Uses of CORSHandlerBuilder in io.muserver.rest
Methods in io.muserver.rest that return CORSHandlerBuilder Modifier and Type Method Description CORSHandlerBuilder
CORSConfigBuilder. toHandler(Method... allowedMethods)
Creates a CORS handler from this config.
-