diff --git a/object_store/src/client/get.rs b/object_store/src/client/get.rs index a896cf2745c7..ad4396ccfdc8 100644 --- a/object_store/src/client/get.rs +++ b/object_store/src/client/get.rs @@ -58,11 +58,16 @@ impl GetClientExt for T { } struct ContentRange { + /// The range of the object returned range: Range, + /// The total size of the object being requested size: usize, } impl ContentRange { + /// Parse a content range of the form `bytes -/` + /// + /// fn from_str(s: &str) -> Option { let rem = s.trim().strip_prefix("bytes ")?; let (range, size) = rem.split_once('/')?;