dump bytes

This commit is contained in:
yggverse 2025-02-23 04:02:53 +02:00
parent e458b1702a
commit c6fc325364

View file

@ -152,7 +152,12 @@ fn titan(
stream: &mut TlsStream<TcpStream>,
) {
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 {