mirror of
https://github.com/YGGverse/nexy.git
synced 2026-03-31 17:25:27 +00:00
dump resolved path info
This commit is contained in:
parent
32291dd630
commit
819a522268
3 changed files with 10 additions and 7 deletions
|
|
@ -1,20 +1,21 @@
|
|||
/// Internal server response types
|
||||
pub enum Response<'a> {
|
||||
AccessDenied {
|
||||
path: std::path::PathBuf,
|
||||
query: &'a str,
|
||||
},
|
||||
InternalServerError {
|
||||
query: Option<&'a str>,
|
||||
error: String,
|
||||
query: Option<&'a str>,
|
||||
},
|
||||
NotFound {
|
||||
query: &'a str,
|
||||
error: String,
|
||||
query: &'a str,
|
||||
},
|
||||
File(&'a [u8]),
|
||||
Directory {
|
||||
query: &'a str,
|
||||
data: String,
|
||||
is_root: bool,
|
||||
query: &'a str,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue