add bodyEntity

This commit is contained in:
Timi
2026-03-16 16:34:46 +08:00
parent 436ac6f205
commit ef7b9af9b7
9 changed files with 215 additions and 26 deletions

View File

@@ -66,6 +66,18 @@ public class ProgressiveRequest extends FileRequest {
return this;
}
@Override
public ProgressiveRequest body(Object object) {
super.body(object);
return this;
}
@Override
public ProgressiveRequest bodyEntity(HttpEntity entity) {
super.bodyEntity(entity);
return this;
}
@Override
public void toFile(Path outputPath) throws IOException, NoPermissionException {
processResponse(request.execute(), IO.getOutputStream(outputPath.toFile()));