mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Privatize the http_loader module.
This commit is contained in:
parent
697275dea3
commit
a888f075a1
3 changed files with 10 additions and 4 deletions
|
@ -58,7 +58,7 @@ mod data_loader;
|
|||
mod file_loader;
|
||||
pub mod filemanager_thread;
|
||||
pub mod hsts;
|
||||
pub mod http_loader;
|
||||
mod http_loader;
|
||||
pub mod image_cache_thread;
|
||||
pub mod mime_classifier;
|
||||
pub mod resource_thread;
|
||||
|
@ -70,3 +70,9 @@ pub mod fetch {
|
|||
pub mod cors_cache;
|
||||
pub mod methods;
|
||||
}
|
||||
|
||||
/// A module for re-exports of items used in unit tests.
|
||||
pub mod test {
|
||||
pub use http_loader::{HttpRequest, HttpRequestFactory, HttpResponse, HttpState};
|
||||
pub use http_loader::{LoadError, LoadErrorType, UIProvider, load};
|
||||
}
|
||||
|
|
|
@ -22,9 +22,9 @@ use msg::constellation_msg::{PipelineId, TEST_PIPELINE_ID};
|
|||
use net::cookie::Cookie;
|
||||
use net::cookie_storage::CookieStorage;
|
||||
use net::hsts::HstsEntry;
|
||||
use net::http_loader::{HttpRequest, HttpRequestFactory, HttpState, LoadError, UIProvider, load};
|
||||
use net::http_loader::{HttpResponse, LoadErrorType};
|
||||
use net::resource_thread::{AuthCacheEntry, CancellationListener};
|
||||
use net::test::{HttpRequest, HttpRequestFactory, HttpState, LoadError, UIProvider, load};
|
||||
use net::test::{HttpResponse, LoadErrorType};
|
||||
use net_traits::{CookieSource, IncludeSubdomains, LoadContext, LoadData};
|
||||
use net_traits::{CustomResponse, LoadOrigin, Metadata, ReferrerPolicy};
|
||||
use std::borrow::Cow;
|
||||
|
|
|
@ -37,7 +37,7 @@ use devtools_traits::DevtoolsControlMsg;
|
|||
use filemanager_thread::{TestProvider, TEST_PROVIDER};
|
||||
use net::fetch::methods::{FetchContext, fetch};
|
||||
use net::filemanager_thread::FileManager;
|
||||
use net::http_loader::HttpState;
|
||||
use net::test::HttpState;
|
||||
use net_traits::FetchTaskTarget;
|
||||
use net_traits::request::Request;
|
||||
use net_traits::response::Response;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue