Interface HttpRequest.UploadProgress

Enclosing class:
HttpRequest

public static interface HttpRequest.UploadProgress
Callback interface for reporting upload progress for a request.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onUpload(long uploaded, long total)
    Callback invoked as data is uploaded by the request.
  • Field Details

  • Method Details

    • onUpload

      void onUpload(long uploaded, long total)
      Callback invoked as data is uploaded by the request.
      Parameters:
      uploaded - The number of bytes already uploaded
      total - The total number of bytes that will be uploaded or -1 if the length is unknown.