Package com.github.kevinsawicki.http
Interface HttpRequest.UploadProgress
- Enclosing class:
HttpRequest
public static interface HttpRequest.UploadProgress
Callback interface for reporting upload progress for a request.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
onUpload
(long uploaded, long total) Callback invoked as data is uploaded by the request.
-
Field Details
-
DEFAULT
-
-
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 uploadedtotal
- The total number of bytes that will be uploaded or -1 if the length is unknown.
-