Always debug print request
This commit is contained in:
parent
1fdf73c6f8
commit
44a244c3c1
12
src/main.rs
12
src/main.rs
@ -55,6 +55,18 @@ impl Context {
|
|||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
eprintln!();
|
||||||
|
eprintln!("Request:");
|
||||||
|
eprintln!("- Method: {}", request.method);
|
||||||
|
eprintln!("- Path: {}", request.path);
|
||||||
|
eprintln!("- Version: {}", request.version);
|
||||||
|
eprintln!("- Headers:");
|
||||||
|
for header in request.headers {
|
||||||
|
eprintln!(" - {header}");
|
||||||
|
}
|
||||||
|
eprintln!("- Body: {}", request.body);
|
||||||
|
eprintln!();
|
||||||
|
|
||||||
let Ok(current_dir) = env::current_dir() else {
|
let Ok(current_dir) = env::current_dir() else {
|
||||||
fail(stream);
|
fail(stream);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user