Class HttpLoggingInterceptor

    • Constructor Detail

      • HttpLoggingInterceptor

        public HttpLoggingInterceptor()
      • HttpLoggingInterceptor

        public HttpLoggingInterceptor​(org.slf4j.Logger logger)
    • Method Detail

      • after

        public void after​(HttpRequest request,
                          HttpResponse<?> response,
                          AsyncBody.Consumer<List<ByteBuffer>> consumer)
        Description copied from interface: Interceptor
        Called after a non-WebSocket HTTP response is received. The body might or might not be already consumed.

        Should be used to analyze response codes and headers, original response shouldn't be altered.

        Specified by:
        after in interface Interceptor
        Parameters:
        request - the original request sent to the server.
        response - the response received from the server.