Skip to content

Commit 5aef3b1

Browse files
Update server example to mention HTTP/2
As discussed in #89
1 parent f72ae09 commit 5aef3b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/server.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//!
33
//! First parameter is the mandatory port to use.
44
//! 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.
57
use core::task::{Context, Poll};
68
use futures_util::{
79
stream::{Stream, StreamExt},

0 commit comments

Comments
 (0)