diff options
| author | Fuwn <[email protected]> | 2022-03-26 09:12:57 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-26 09:12:57 +0000 |
| commit | f278c42d63c837690734fdb96b43f0ccfec49cd1 (patch) | |
| tree | bfd1e657053c2fb49c794d9293c15804200d8c7b /src/response.rs | |
| parent | feat(mount): dynamic parameters (diff) | |
| download | windmark-f278c42d63c837690734fdb96b43f0ccfec49cd1.tar.xz windmark-f278c42d63c837690734fdb96b43f0ccfec49cd1.zip | |
feat(response): variable responses
Diffstat (limited to 'src/response.rs')
| -rw-r--r-- | src/response.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/response.rs b/src/response.rs index ccec4bb..0a22750 100644 --- a/src/response.rs +++ b/src/response.rs @@ -25,3 +25,9 @@ impl ToString for Header { format!("{} {}\r\n", self.status as u8, self.meta) } } + +pub enum Response { + Success(String), + NotFound(String), + PermanentFailure(String), +} |