Package | Description |
---|---|
io.muserver.handlers |
Some pre-built handlers for common tasks such as file handling.
|
Modifier and Type | Method and Description |
---|---|
static CORSHandlerBuilder |
CORSHandlerBuilder.corsHandler()
A helper for creating a CORS handler
|
CORSHandlerBuilder |
CORSHandlerBuilder.withAllowedMethods(Method... methods)
Specifies the headers allowed for CORS requests.
|
CORSHandlerBuilder |
CORSHandlerBuilder.withCORSConfig(CORSConfig corsConfig)
Sets the CORS configuration for the handler
|
CORSHandlerBuilder |
CORSHandlerBuilder.withCORSConfig(CORSConfigBuilder corsConfig)
Sets the CORS configuration for the handler
|
Copyright © 2017–2021. All rights reserved.