Handle HTTP 3xx redirects

Fixes #973.
This commit is contained in:
Keegan McAllister 2013-09-23 12:13:33 -07:00
parent 9bd0e2a3ac
commit 1c6de361b7
6 changed files with 70 additions and 15 deletions

View file

@ -21,6 +21,9 @@ pub enum ControlMsg {
/// Messages sent in response to a `Load` message
#[deriving(Eq)]
pub enum ProgressMsg {
/// URL changed due to a redirect. There can be zero or more of these,
/// but they are guaranteed to arrive before messages of any other type.
UrlChange(Url),
/// Binary data - there may be multiple of these
Payload(~[u8]),
/// Indicates loading is complete, either successfully or not