add CommonRequest.timeout
This commit is contained in:
@@ -42,6 +42,12 @@ public class ProgressiveRequest extends FileRequest {
|
||||
return new ProgressiveRequest(Request.post(url), callback);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProgressiveRequest timeout(long ms) {
|
||||
super.timeout(ms);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toFile(Path outputPath) throws IOException, NoPermissionException {
|
||||
processResponse(request.execute(), IO.getOutputStream(outputPath.toFile()));
|
||||
|
||||
Reference in New Issue
Block a user