Interface Response.ContentListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onContent​(Response response, java.nio.ByteBuffer content)
      Callback method invoked when the response content has been received, parsed and there is demand.
    • Method Detail

      • onContent

        void onContent​(Response response,
                       java.nio.ByteBuffer content)
        Callback method invoked when the response content has been received, parsed and there is demand. This method may be invoked multiple times, and the content buffer must be consumed (or copied) before returning from this method.
        Parameters:
        response - the response containing the response line data and the headers
        content - the content bytes received