1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 16:19:12 -05:00

Use reqwest from deno_fetch export (#7562)

This commit is contained in:
Ryan Dahl 2020-09-18 13:07:09 -04:00 committed by GitHub
parent 4c2920ddd7
commit 526d668102
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 12 deletions

1
Cargo.lock generated
View file

@ -425,7 +425,6 @@ dependencies = [
"os_pipe",
"rand 0.7.3",
"regex",
"reqwest",
"ring",
"rustyline",
"semver-parser 0.9.0",

View file

@ -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"] }

View file

@ -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;

View file

@ -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;

View file

@ -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;

View 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;