Interface ProxyCompleteListener

  • All Known Implementing Classes:
    Slf4jResponseLogger

    public interface ProxyCompleteListener
    A 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
      void onComplete​(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.Exception
        Called after the response has been sent to the client, whether successful or not
        Parameters:
        clientRequest - The original request from the client
        clientResponse - The response sent to the client
        targetUri - The URI that this request was proxied to
        durationMillis - 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