Interface TransferListener


public interface TransferListener
A simple interface an application can implements in order to received byte transfer information.
  • Method Details

    • onRequestHeadersSent

      void onRequestHeadersSent(FluentCaseInsensitiveStringsMap headers)
      Invoked when the request bytes are starting to get send.
    • onResponseHeadersReceived

      void onResponseHeadersReceived(FluentCaseInsensitiveStringsMap headers)
      Invoked when the response bytes are starting to get received.
    • onBytesReceived

      void onBytesReceived(byte[] b) throws IOException
      Invoked every time response's chunk are received.
      Parameters:
      b - bytes
      Throws:
      IOException
    • onBytesSent

      void onBytesSent(long amount, long current, long total)
      Invoked every time request's chunk are sent.
      Parameters:
      amount -
      current -
      total -
    • onRequestResponseCompleted

      void onRequestResponseCompleted()
      Invoked when the response bytes are been fully received.
    • onThrowable

      void onThrowable(Throwable t)
      Invoked when there is an unexpected issue.
      Parameters:
      t - a Throwable