Skip to content

Commit 11a7c77

Browse files
jesselucasdjc
authored andcommitted
Add usage documentation to quinn/examples/server.rs
1 parent ddc8d43 commit 11a7c77

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

quinn/examples/server.rs

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
//! Example to serve files from a directory.
2+
//!
3+
//! Run:
4+
//! ```text
5+
//! $ RUST_LOG=debug cargo run --example server ./
6+
//! ```
7+
//!
8+
//! and in another terminal you can run the client example:
9+
//!
10+
//! Run:
11+
//! ```test
12+
//! $ cargo run --example client https://localhost:4433/Cargo.toml
13+
//! ```
14+
//!
15+
//! The output will be the source code of the Cargo.toml file.
16+
117
use std::{
218
ascii, fs, io,
319
net::SocketAddr,

0 commit comments

Comments
 (0)