mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove HTTP support (!)
We'll need a new HTTP client lib written against newrt.
This commit is contained in:
parent
e917ff353b
commit
ef50acfa89
5 changed files with 6 additions and 8 deletions
1
configure
vendored
1
configure
vendored
|
@ -406,7 +406,6 @@ CFG_SUBMODULES="\
|
|||
support/glfw/glfw \
|
||||
support/glfw/glfw-rs \
|
||||
support/harfbuzz/rust-harfbuzz \
|
||||
support/http-client/rust-http-client \
|
||||
support/hubbub/libhubbub \
|
||||
support/hubbub/rust-hubbub \
|
||||
support/layers/rust-layers \
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
extern mod azure;
|
||||
extern mod geom;
|
||||
extern mod http_client;
|
||||
extern mod stb_image;
|
||||
extern mod extra;
|
||||
extern mod servo_net (name = "net");
|
||||
|
|
|
@ -16,7 +16,7 @@ extern mod azure;
|
|||
extern mod geom;
|
||||
extern mod gfx (name = "gfx");
|
||||
extern mod glfw;
|
||||
extern mod http_client;
|
||||
//extern mod http_client;
|
||||
extern mod js;
|
||||
extern mod layers;
|
||||
extern mod newcss (name = "css");
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#[crate_type = "lib"];
|
||||
|
||||
extern mod geom;
|
||||
extern mod http_client;
|
||||
//extern mod http_client;
|
||||
extern mod servo_util (name = "util");
|
||||
extern mod stb_image;
|
||||
extern mod extra;
|
||||
|
@ -25,7 +25,7 @@ pub mod image {
|
|||
}
|
||||
|
||||
pub mod file_loader;
|
||||
pub mod http_loader;
|
||||
//pub mod http_loader;
|
||||
pub mod image_cache_task;
|
||||
pub mod local_image_cache;
|
||||
pub mod resource_task;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
//! A task that takes a URL and streams back the binary data.
|
||||
|
||||
use file_loader;
|
||||
use http_loader;
|
||||
//use http_loader;
|
||||
|
||||
use std::cell::Cell;
|
||||
use std::comm::{Chan, Port, SharedChan};
|
||||
|
@ -43,10 +43,10 @@ pub type LoaderTask = ~fn(url: Url, Chan<ProgressMsg>);
|
|||
/// Create a ResourceTask with the default loaders
|
||||
pub fn ResourceTask() -> ResourceTask {
|
||||
let file_loader_factory: LoaderTaskFactory = file_loader::factory;
|
||||
let http_loader_factory: LoaderTaskFactory = http_loader::factory;
|
||||
//let http_loader_factory: LoaderTaskFactory = http_loader::factory;
|
||||
let loaders = ~[
|
||||
(~"file", file_loader_factory),
|
||||
(~"http", http_loader_factory)
|
||||
//(~"http", http_loader_factory)
|
||||
];
|
||||
create_resource_task_with_loaders(loaders)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue