diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-12-27 17:59:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-27 11:59:57 -0500 |
commit | c2414db1f68d27db8ca6f192f0ff877f1394164c (patch) | |
tree | 528da9796f400557204bfdb8e4d44d64173036ce /runtime/ops | |
parent | 33acd437f52b418a8413a302dd8902abad2eabec (diff) |
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
Diffstat (limited to 'runtime/ops')
-rw-r--r-- | runtime/ops/http.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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::<TcpStream>() { Ok(Parts { io: tcp_stream, |