We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 86410ad + 5aef3b1 commit bf48901Copy full SHA for bf48901
examples/server.rs
@@ -2,6 +2,8 @@
2
//!
3
//! First parameter is the mandatory port to use.
4
//! Certificate and private key are hardcoded to sample files.
5
+//! hyper will automatically use HTTP/2 if a client starts talking HTTP/2,
6
+//! otherwise HTTP/1.1 will be used.
7
use core::task::{Context, Poll};
8
use futures_util::{
9
stream::{Stream, StreamExt},
0 commit comments