Package io.muserver.handlers
Class CORSHandler
- java.lang.Object
-
- io.muserver.handlers.CORSHandler
-
- All Implemented Interfaces:
MuHandler
public class CORSHandler extends java.lang.Object implements MuHandler
A handler that adds CORS headers to responses. Create a builder withCORSHandlerBuilder.corsHandler()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandle(MuRequest request, MuResponse response)Called when an HTTP request is made (unless a previous handler stopped handler processing)java.lang.StringtoString()
-
-
-
Method Detail
-
handle
public boolean handle(MuRequest request, MuResponse response)
Description copied from interface:MuHandlerCalled when an HTTP request is made (unless a previous handler stopped handler processing)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-