Package io.muserver.murp
Interface ProxyCompleteListener
-
- All Known Implementing Classes:
Slf4jResponseLogger
public interface ProxyCompleteListenerA listener for when proxied requests complete- Version:
- 1.0
- Author:
- Daniel Flower
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonComplete(io.muserver.MuRequest clientRequest, io.muserver.MuResponse clientResponse, java.net.URI targetUri, long durationMillis)Called after the response has been sent to the client, whether successful or not
-
-
-
Method Detail
-
onComplete
void onComplete(io.muserver.MuRequest clientRequest, io.muserver.MuResponse clientResponse, java.net.URI targetUri, long durationMillis) throws java.lang.ExceptionCalled after the response has been sent to the client, whether successful or not- Parameters:
clientRequest- The original request from the clientclientResponse- The response sent to the clienttargetUri- The URI that this request was proxied todurationMillis- The time in millis from when the reverse proxy received the request until the client request was sent.- Throws:
java.lang.Exception- Any exceptions will be logged and ignored
-
-