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
commite3fe241b126b049499cdd7263715a83278846f33 (patch)
treebfd1e657053c2fb49c794d9293c15804200d8c7b /src/response.rs
parentfeat(mount): dynamic parameters (diff)
downloadwindmark-e3fe241b126b049499cdd7263715a83278846f33.tar.xz
windmark-e3fe241b126b049499cdd7263715a83278846f33.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),
+}