Class Slf4jResponseLogger

    • Constructor Summary

      Constructors 
      Constructor Description
      Slf4jResponseLogger()
      Default constructor
    • Method Summary

      All Methods Instance Methods Concrete 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Slf4jResponseLogger

        public Slf4jResponseLogger()
        Default constructor
    • Method Detail

      • onComplete

        public 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
        Specified by:
        onComplete in interface ProxyCompleteListener
        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.