add stream capability to fullhash

This commit is contained in:
Pierre
2026-01-24 16:22:05 +01:00
parent 71b2c572c3
commit 99f9ef6228
6 changed files with 479 additions and 17 deletions
+8
View File
@@ -1,4 +1,6 @@
use anyhow::{Context, Result};
use bytes::Bytes;
use futures_util::Stream;
use reqwest::Client;
/// WebDAV client for streaming file access
@@ -87,6 +89,12 @@ impl WebDavReader {
.context("Failed to read response bytes")
}
/// Get a stream of bytes for streaming processing
/// This is the efficient path - data is processed as it arrives
pub fn bytes_stream(self) -> impl Stream<Item = Result<Bytes, reqwest::Error>> {
self.inner.bytes_stream()
}
/// Get the underlying response for streaming
pub fn into_response(self) -> reqwest::Response {
self.inner