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 /ext/http/websocket_upgrade.rs | |
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 'ext/http/websocket_upgrade.rs')
-rw-r--r-- | ext/http/websocket_upgrade.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/http/websocket_upgrade.rs b/ext/http/websocket_upgrade.rs index d1eabfdf5..91bb81c74 100644 --- a/ext/http/websocket_upgrade.rs +++ b/ext/http/websocket_upgrade.rs @@ -6,9 +6,9 @@ use bytes::Bytes; use bytes::BytesMut; use deno_core::error::AnyError; use httparse::Status; -use hyper1::header::HeaderName; -use hyper1::header::HeaderValue; -use hyper1::Response; +use hyper::header::HeaderName; +use hyper::header::HeaderValue; +use hyper::Response; use memmem::Searcher; use memmem::TwoWaySearcher; use once_cell::sync::OnceCell; @@ -152,7 +152,7 @@ impl<T: Default> WebSocketUpgrade<T> { #[cfg(test)] mod tests { use super::*; - use hyper::Body; + use hyper_v014::Body; type ExpectedResponseAndHead = Option<(Response<Body>, &'static [u8])>; |