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 | e3fe241b126b049499cdd7263715a83278846f33 (patch) | |
| tree | bfd1e657053c2fb49c794d9293c15804200d8c7b /src/response.rs | |
| parent | feat(mount): dynamic parameters (diff) | |
| download | windmark-e3fe241b126b049499cdd7263715a83278846f33.tar.xz windmark-e3fe241b126b049499cdd7263715a83278846f33.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), +} |