From c6fc325364b857c35351e7bf93448c447f6e6333 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 23 Feb 2025 04:02:53 +0200 Subject: [PATCH] dump bytes --- src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 51396b8..83235eb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -152,7 +152,12 @@ fn titan( stream: &mut TlsStream, ) { use titanite::*; - println!("[{}] [info] [{peer}] Request: {}", now(), titan.url); + println!( + "[{}] [info] [{peer}] Request: {} ({} bytes)", + now(), + titan.url, + titan.size + ); // require content type for application, // even MIME value is optional by Titan specification let mime = match titan.mime {