feat(mobile): upload engine with preparation, batching states and retries
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -70,6 +70,10 @@ class FakeAdapter implements HttpClientAdapter {
|
||||
body: options.data,
|
||||
),
|
||||
);
|
||||
if (requestStream != null) {
|
||||
// 消费请求流(真实服务端会读 body;上传引擎的进度计数流由此驱动)。
|
||||
await requestStream.drain<Object?>();
|
||||
}
|
||||
final (status, body) = await router(options);
|
||||
if (body == null) {
|
||||
// 204 等:空体且不带 JSON content-type(transformer 不解码)。
|
||||
|
||||
Reference in New Issue
Block a user