public class WebSocketHandler extends Object implements MuHandler
WebSocketHandlerBuilder.webSocketHandler()
Modifier and Type | Method and Description |
---|---|
boolean |
handle(MuRequest request,
MuResponse response)
Called when an HTTP request is made (unless a previous handler stopped handler processing)
|
public boolean handle(MuRequest request, MuResponse response) throws Exception
MuHandler
handle
in interface MuHandler
request
- The HTTP request.response
- The HTTP response.false
to continue processing the next handler (for example if writing a filter or inspector); or true
to stop processing (normally done if this handler sent a response).Exception
- Any uncaught exceptions will result in a 500 error code being returned to the client with a simple message.Copyright © 2017–2021. All rights reserved.