mirror of
https://github.com/YGGverse/titanit.git
synced 2026-03-31 17:15:30 +00:00
dump bytes
This commit is contained in:
parent
e458b1702a
commit
c6fc325364
1 changed files with 6 additions and 1 deletions
|
|
@ -152,7 +152,12 @@ fn titan(
|
||||||
stream: &mut TlsStream<TcpStream>,
|
stream: &mut TlsStream<TcpStream>,
|
||||||
) {
|
) {
|
||||||
use titanite::*;
|
use titanite::*;
|
||||||
println!("[{}] [info] [{peer}] Request: {}", now(), titan.url);
|
println!(
|
||||||
|
"[{}] [info] [{peer}] Request: {} ({} bytes)",
|
||||||
|
now(),
|
||||||
|
titan.url,
|
||||||
|
titan.size
|
||||||
|
);
|
||||||
// require content type for application,
|
// require content type for application,
|
||||||
// even MIME value is optional by Titan specification
|
// even MIME value is optional by Titan specification
|
||||||
let mime = match titan.mime {
|
let mime = match titan.mime {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue