mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Set response status for range requests to file and blob urls
This commit is contained in:
parent
b96e5681aa
commit
79d27cb7ca
5 changed files with 96 additions and 37 deletions
|
@ -9,7 +9,7 @@ use url::Url;
|
|||
use uuid::Uuid;
|
||||
|
||||
/// Errors returned to Blob URL Store request
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
|
||||
pub enum BlobURLStoreError {
|
||||
/// Invalid File UUID
|
||||
InvalidFileID,
|
||||
|
@ -17,6 +17,8 @@ pub enum BlobURLStoreError {
|
|||
InvalidOrigin,
|
||||
/// Invalid entry content
|
||||
InvalidEntry,
|
||||
/// Invalid range
|
||||
InvalidRange,
|
||||
/// External error, from like file system, I/O etc.
|
||||
External(String),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue