aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/windmark.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/windmark.rs b/examples/windmark.rs
index fca1c97..b33f686 100644
--- a/examples/windmark.rs
+++ b/examples/windmark.rs
@@ -82,7 +82,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
context.url.to_string()
)
}));
- router.set_post_route_callback(Box::new(|context| {
+ router.set_post_route_callback(Box::new(|context, content| {
+ *content = content.replace("Welcome!", "Welcome to Windmark!");
+
info!(
"closed connection from {}",
context.tcp.peer_addr().unwrap().ip()