From c2414db1f68d27db8ca6f192f0ff877f1394164c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 27 Dec 2023 17:59:57 +0100 Subject: refactor: simplify hyper, http, h2 deps (#21715) Main change is that: - "hyper" has been renamed to "hyper_v014" to signal that it's legacy - "hyper1" has been renamed to "hyper" and should be the default --- runtime/ops/http.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/ops/http.rs') diff --git a/runtime/ops/http.rs b/runtime/ops/http.rs index fc66c9fab..65a990dd9 100644 --- a/runtime/ops/http.rs +++ b/runtime/ops/http.rs @@ -18,7 +18,7 @@ use deno_http::HttpStreamResource; use deno_net::io::TcpStreamResource; use deno_net::ops_tls::TlsStream; use deno_net::ops_tls::TlsStreamResource; -use hyper::upgrade::Parts; +use hyper_v014::upgrade::Parts; use serde::Serialize; use tokio::net::TcpStream; @@ -121,7 +121,7 @@ async fn op_http_upgrade( } }; - let transport = hyper::upgrade::on(request).await?; + let transport = hyper_v014::upgrade::on(request).await?; let transport = match transport.downcast::() { Ok(Parts { io: tcp_stream, -- cgit v1.2.3