Interface HttpRequest.UploadProgress

  • Enclosing class:
    HttpRequest

    public static interface HttpRequest.UploadProgress
    Callback interface for reporting upload progress for a request.
    • Method Detail

      • 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.