Skip to content

Commit

Permalink
remove http
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Nov 16, 2023
1 parent 43e2fdb commit 6e8bd37
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ ratatui = { version = "0.24.0", default-features = false, features = [
"crossterm",
] }

http = "1"
hyper = { version = "1.0", features = ["client", "http1", "http2"] }

# native-tls
Expand Down Expand Up @@ -75,6 +74,5 @@ hyper14 = { package = "hyper", version = "0.14", features = ["full"] }
assert_cmd = "2.0.2"
axum = { version = "0.6.20", features = ["http2"] }
bytes = "1.0"
http = "0.2"
lazy_static = "1.4.0"
regex = "1.9.6"
1 change: 1 addition & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use futures::future::FutureExt;
use http_body_util::Full;
use hyper::body::{Body, Incoming};
use hyper::http;
use rand::prelude::*;
use std::pin::Pin;
use std::sync::Arc;
Expand Down
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ use anyhow::Context;
use clap::Parser;
use crossterm::tty::IsTty;
use futures::prelude::*;
use http::header::{HeaderName, HeaderValue};
use humantime::Duration;
use hyper::http::{
self,
header::{HeaderName, HeaderValue},
};
use printer::PrintMode;
use rand::prelude::*;
use rand_regex::Regex;
Expand Down
1 change: 1 addition & 0 deletions src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use byte_unit::Byte;
use crossterm::event::{Event, KeyCode, KeyEvent, KeyModifiers};
use crossterm::ExecutableCommand;
use flume::TryRecvError;
use hyper::http;
use ratatui::backend::CrosstermBackend;
use ratatui::layout::{Constraint, Direction, Layout};
use ratatui::style::{Color, Style};
Expand Down
2 changes: 1 addition & 1 deletion src/printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use average::Max;
use average::Variance;
use byte_unit::Byte;
use crossterm::style::{StyledContent, Stylize};
use http::StatusCode;
use hyper::http::{self, StatusCode};
use std::collections::BTreeMap;
use std::io::Write;
use std::time::Duration;
Expand Down
1 change: 1 addition & 0 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use axum::{
use http::{HeaderMap, Request, Response};
use hyper14::{
body::to_bytes,
http,
server::conn::AddrIncoming,
service::{make_service_fn, service_fn},
Body,
Expand Down

0 comments on commit 6e8bd37

Please sign in to comment.