We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddc8d43 commit 11a7c77Copy full SHA for 11a7c77
quinn/examples/server.rs
@@ -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
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
+
17
use std::{
18
ascii, fs, io,
19
net::SocketAddr,
0 commit comments