mirror of
https://github.com/YGGverse/nexy.git
synced 2026-03-31 17:25:27 +00:00
initial commit
This commit is contained in:
parent
d3661f8865
commit
ab625aa96a
14 changed files with 533 additions and 0 deletions
11
src/response.rs
Normal file
11
src/response.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/// Internal types
|
||||
pub enum Response<'a> {
|
||||
/// Includes reference to the original request
|
||||
AccessDenied(&'a str),
|
||||
/// Includes server-side error description
|
||||
InternalServerError(String),
|
||||
/// Includes reference to the original request
|
||||
NotFound(&'a str),
|
||||
/// Includes bytes array
|
||||
Success(&'a [u8]),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue