Adds tests for redirecting

servo/servo#6727
This commit is contained in:
Sam Gibson 2015-08-10 21:13:01 +12:00
parent 81fe5938bf
commit 06f09f6cdb
2 changed files with 176 additions and 5 deletions

View file

@ -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),