mirror of
https://github.com/YGGverse/nexy.git
synced 2026-04-01 09:45:29 +00:00
improve router debug
This commit is contained in:
parent
8c742ed9a1
commit
c096cace3b
3 changed files with 31 additions and 15 deletions
|
|
@ -1,7 +1,10 @@
|
|||
use std::path::PathBuf;
|
||||
|
||||
/// Internal server response types
|
||||
pub enum Response<'a> {
|
||||
AccessDenied {
|
||||
path: std::path::PathBuf,
|
||||
canonical: PathBuf,
|
||||
path: PathBuf,
|
||||
query: &'a str,
|
||||
},
|
||||
InternalServerError {
|
||||
|
|
@ -10,6 +13,7 @@ pub enum Response<'a> {
|
|||
},
|
||||
NotFound {
|
||||
error: String,
|
||||
path: PathBuf,
|
||||
query: &'a str,
|
||||
},
|
||||
File(&'a [u8]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue