Skip to content

Commit

Permalink
HTTP/2 is not supported yet
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Aug 12, 2023
1 parent 23195f9 commit c247263
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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.

4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Note: If qps is specified, burst will be ignored",
proxy: Option<String>,
*/
#[clap(
help = "HTTP version. Available values 0.9, 1.0, 1.1, 2.",
help = "HTTP version. Available values 0.9, 1.0, 1.1.",
long = "http-version"
)]
http_version: Option<String>,
Expand Down Expand Up @@ -203,7 +203,7 @@ async fn main() -> anyhow::Result<()> {
"1.1" => http::Version::HTTP_11,
"2.0" | "2" => anyhow::bail!("HTTP/2 is not supported yet."),
"3.0" | "3" => anyhow::bail!("HTTP/3 is not supported yet."),
_ => anyhow::bail!("Unknown HTTP version. Valid versions are 0.9, 1.0, 1.1, 2, 3."),
_ => anyhow::bail!("Unknown HTTP version. Valid versions are 0.9, 1.0, 1.1."),
}
} else {
http::Version::HTTP_11
Expand Down

0 comments on commit c247263

Please sign in to comment.