mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Move the HTTP connector in HttpState
This commit is contained in:
parent
12ddc891c6
commit
16863017a9
6 changed files with 13 additions and 22 deletions
|
@ -23,7 +23,7 @@ use hyper::status::StatusCode;
|
|||
use hyper::uri::RequestUri;
|
||||
use hyper_openssl;
|
||||
use msg::constellation_msg::TEST_PIPELINE_ID;
|
||||
use net::connector::{create_http_connector, create_ssl_client};
|
||||
use net::connector::create_ssl_client;
|
||||
use net::fetch::cors_cache::CorsCache;
|
||||
use net::fetch::methods::FetchContext;
|
||||
use net::filemanager_thread::FileManager;
|
||||
|
@ -532,14 +532,12 @@ fn test_fetch_with_hsts() {
|
|||
|
||||
let ca_file = resources_dir_path().unwrap().join("self_signed_certificate_for_testing.crt");
|
||||
let ssl_client = create_ssl_client(&ca_file);
|
||||
let connector = create_http_connector(ssl_client.clone());
|
||||
|
||||
let context = FetchContext {
|
||||
state: Arc::new(HttpState::new(ssl_client)),
|
||||
user_agent: DEFAULT_USER_AGENT.into(),
|
||||
devtools_chan: None,
|
||||
filemanager: FileManager::new(),
|
||||
connector: connector,
|
||||
};
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue