Uses of Class
io.muserver.Method
-
Packages that use Method Package Description io.muserver This package contains the main API of mu-server, for example the server builders, request and response objects.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 Method in io.muserver
Methods in io.muserver that return Method Modifier and Type Method Description MethodMuRequest. method()static MethodMethod. valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Method[]Method. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in io.muserver with parameters of type Method Modifier and Type Method Description ContextHandlerBuilderContextHandlerBuilder. addHandler(Method method, java.lang.String uriTemplate, RouteHandler handler)Registers a new handler that will only be called if it matches the given route info (relative to the current context).MuServerBuilderMuServerBuilder. addHandler(Method method, java.lang.String uriTemplate, RouteHandler handler)Registers a new handler that will only be called if it matches the given route infostatic MuHandlerRoutes. route(Method method, java.lang.String uriTemplate, RouteHandler muHandler)Creates a new handler that will only be called if it matches the given route info. -
Uses of Method in io.muserver.handlers
Methods in io.muserver.handlers with parameters of type Method Modifier and Type Method Description CORSHandlerBuilderCORSHandlerBuilder. withAllowedMethods(Method... methods)Specifies the headers allowed for CORS requests. -
Uses of Method in io.muserver.rest
Methods in io.muserver.rest with parameters of type Method Modifier and Type Method Description CORSHandlerBuilderCORSConfigBuilder. toHandler(Method... allowedMethods)Creates a CORS handler from this config.Method parameters in io.muserver.rest with type arguments of type Method Modifier and Type Method Description booleanCORSConfig. writeHeaders(MuRequest request, MuResponse response, java.util.Set<Method> allowedMethods)Adds CORS headers to the response, if needed.
-