mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 23:59:59 -05:00
Use reqwest from deno_fetch export (#7562)
This commit is contained in:
parent
4c2920ddd7
commit
526d668102
6 changed files with 15 additions and 12 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -425,7 +425,6 @@ dependencies = [
|
|||
"os_pipe",
|
||||
"rand 0.7.3",
|
||||
"regex",
|
||||
"reqwest",
|
||||
"ring",
|
||||
"rustyline",
|
||||
"semver-parser 0.9.0",
|
||||
|
|
|
@ -56,7 +56,6 @@ env_logger = "0.7.1"
|
|||
notify = "5.0.0-pre.3"
|
||||
rand = "0.7.3"
|
||||
regex = "1.3.9"
|
||||
reqwest = { version = "0.10.8", default-features = false, features = ["rustls-tls", "stream", "gzip", "brotli"] }
|
||||
ring = "0.16.15"
|
||||
rustyline = { version = "6.3.0", default-features = false }
|
||||
serde = { version = "1.0.116", features = ["derive"] }
|
||||
|
|
|
@ -14,6 +14,7 @@ use crate::import_map::ImportMapError;
|
|||
use deno_core::error::AnyError;
|
||||
use deno_core::url;
|
||||
use deno_core::ModuleResolutionError;
|
||||
use deno_fetch::reqwest;
|
||||
use rustyline::error::ReadlineError;
|
||||
use std::env;
|
||||
use std::error::Error;
|
||||
|
|
|
@ -15,6 +15,7 @@ use deno_core::error::AnyError;
|
|||
use deno_core::url;
|
||||
use deno_core::url::Url;
|
||||
use deno_core::ModuleSpecifier;
|
||||
use deno_fetch::reqwest;
|
||||
use futures::future::FutureExt;
|
||||
use log::info;
|
||||
use std::borrow::Cow;
|
||||
|
|
|
@ -5,15 +5,16 @@ use bytes::Bytes;
|
|||
use deno_core::error::generic_error;
|
||||
use deno_core::error::AnyError;
|
||||
use deno_core::url::Url;
|
||||
use reqwest::header::HeaderMap;
|
||||
use reqwest::header::HeaderValue;
|
||||
use reqwest::header::IF_NONE_MATCH;
|
||||
use reqwest::header::LOCATION;
|
||||
use reqwest::header::USER_AGENT;
|
||||
use reqwest::redirect::Policy;
|
||||
use reqwest::Client;
|
||||
use reqwest::Response;
|
||||
use reqwest::StatusCode;
|
||||
use deno_fetch::reqwest;
|
||||
use deno_fetch::reqwest::header::HeaderMap;
|
||||
use deno_fetch::reqwest::header::HeaderValue;
|
||||
use deno_fetch::reqwest::header::IF_NONE_MATCH;
|
||||
use deno_fetch::reqwest::header::LOCATION;
|
||||
use deno_fetch::reqwest::header::USER_AGENT;
|
||||
use deno_fetch::reqwest::redirect::Policy;
|
||||
use deno_fetch::reqwest::Client;
|
||||
use deno_fetch::reqwest::Response;
|
||||
use deno_fetch::reqwest::StatusCode;
|
||||
use std::cmp::min;
|
||||
use std::collections::HashMap;
|
||||
use std::fs::File;
|
||||
|
|
|
@ -11,9 +11,11 @@ use crate::http_util::FetchOnceResult;
|
|||
use crate::AnyError;
|
||||
use deno_core::error::custom_error;
|
||||
use deno_core::url::Url;
|
||||
use deno_fetch::reqwest;
|
||||
use deno_fetch::reqwest::redirect::Policy;
|
||||
use deno_fetch::reqwest::Client;
|
||||
use futures::FutureExt;
|
||||
use regex::Regex;
|
||||
use reqwest::{redirect::Policy, Client};
|
||||
use semver_parser::version::parse as semver_parse;
|
||||
use semver_parser::version::Version;
|
||||
use std::fs;
|
||||
|
|
Loading…
Reference in a new issue