aboutsummaryrefslogtreecommitdiff
path: root/src/response.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-26 09:12:57 +0000
committerFuwn <[email protected]>2022-03-26 09:12:57 +0000
commitf278c42d63c837690734fdb96b43f0ccfec49cd1 (patch)
treebfd1e657053c2fb49c794d9293c15804200d8c7b /src/response.rs
parentfeat(mount): dynamic parameters (diff)
downloadwindmark-f278c42d63c837690734fdb96b43f0ccfec49cd1.tar.xz
windmark-f278c42d63c837690734fdb96b43f0ccfec49cd1.zip
feat(response): variable responses
Diffstat (limited to 'src/response.rs')
-rw-r--r--src/response.rs6
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),
+}