Uses of Interface
io.muserver.MuRequest
-
Packages that use MuRequest 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 MuRequest in io.muserver
Methods in io.muserver that return MuRequest Modifier and Type Method Description MuRequestResponseInfo. request()Methods in io.muserver that return types with arguments of type MuRequest Modifier and Type Method Description java.util.Set<MuRequest>HttpConnection. activeRequests()java.util.Set<MuRequest>MuStats. activeRequests()Methods in io.muserver with parameters of type MuRequest Modifier and Type Method Description MuWebSocketMuWebSocketFactory. create(MuRequest request, Headers responseHeaders)Creates a web socket for an upgrade request.booleanContextHandler. handle(MuRequest request, MuResponse response)booleanMuHandler. handle(MuRequest request, MuResponse response)Called when an HTTP request is made (unless a previous handler stopped handler processing)voidRouteHandler. handle(MuRequest request, MuResponse response, java.util.Map<java.lang.String,java.lang.String> pathParams)Called when a request matches the given routebooleanUnhandledExceptionHandler. handle(MuRequest request, MuResponse response, java.lang.Throwable cause)Called when an exception is thrown by another handler.booleanWebSocketHandler. handle(MuRequest request, MuResponse response)RateLimitRateLimitSelector. select(MuRequest request)Selects a rate limit bucket based on the current request.static AsyncSsePublisherAsyncSsePublisher. start(MuRequest request, MuResponse response)Creates a new Server-Sent Events publisher.static SsePublisherSsePublisher. start(MuRequest request, MuResponse response)Creates a new Server-Sent Events publisher. -
Uses of MuRequest in io.muserver.handlers
Methods in io.muserver.handlers with parameters of type MuRequest Modifier and Type Method Description default voidResourceCustomizer. beforeHeadersSent(MuRequest request, Headers responseHeaders)Called after the default headers have been set, just before they are sent to the client.booleanCORSHandler. handle(MuRequest request, MuResponse response)booleanHttpsRedirector. handle(MuRequest request, MuResponse response)booleanResourceHandler. handle(MuRequest request, MuResponse response) -
Uses of MuRequest in io.muserver.rest
Methods in io.muserver.rest with parameters of type MuRequest Modifier and Type Method Description booleanRestHandler. handle(MuRequest muRequest, MuResponse muResponse)booleanCORSConfig. writeHeaders(MuRequest request, MuResponse response, java.util.Set<Method> allowedMethods)Adds CORS headers to the response, if needed.
-