Skip to content

Commit bf48901

Browse files
authored
Merge pull request #90 from fluffysquirrels/patch-1
Update server example to mention HTTP/2
2 parents 86410ad + 5aef3b1 commit bf48901

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)