mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
parent
81fe5938bf
commit
06f09f6cdb
2 changed files with 176 additions and 5 deletions
|
@ -266,6 +266,7 @@ pub trait HttpRequester {
|
|||
fn send(&self, url: &Url, method: &Method, headers: &Headers, body: &Option<Vec<u8>>) -> Result<Box<HttpResponse>, LoadError>;
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum LoadError {
|
||||
UnsupportedScheme(Url),
|
||||
Connection(Url, String),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue