1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/// Parsed HTTP byte-range specification for `GET /v1/blobs/{sha256}`. #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum ByteRangeSpec { /// No `Range` header was provided; serve the complete blob (`200 OK`). Full, /// Valid inclusive byte slice `[start..=end]` (`206 Partial Content`). Slice { /// Inclusive start byte offset. start: usize, /// Inclusive end byte offset. end: usize, }, /// Syntactically invalid or out-of-bounds byte range (`416 Range Not Satisfiable`). Invalid, }