servo: Update rust-http-client

Source-Repo: https://github.com/servo/servo
Source-Revision: 25a5e903a77a9a0fb553e1d352ca9ee2df07d35d
This commit is contained in:
Brian Anderson 2012-07-28 16:24:42 -07:00
Родитель c20bb6393e
Коммит df20ee2d87
1 изменённых файлов: 2 добавлений и 12 удалений

Просмотреть файл

@ -4,10 +4,7 @@ import comm::{chan, methods};
import task::spawn;
import resource_task::{ProgressMsg, Payload, Done};
import std::net::url::url;
import http_client::{
uv_http_request,
Uri
};
import http_client::{uv_http_request};
import result::{ok, err};
fn factory(url: url, progress_chan: chan<ProgressMsg>) {
@ -15,7 +12,7 @@ fn factory(url: url, progress_chan: chan<ProgressMsg>) {
do spawn {
#debug("http_loader: requesting via http: %?", url);
let request = uv_http_request(url_to_http_client_uri(url));
let request = uv_http_request(url);
let errored = @mut false;
do request.begin |event| {
alt event {
@ -39,10 +36,3 @@ fn factory(url: url, progress_chan: chan<ProgressMsg>) {
}
}
}
fn url_to_http_client_uri(url: url) -> Uri {
{
host: url.host,
path: url.path
}
}