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