aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-03-30 10:40:04 +0000
committerFuwn <[email protected]>2023-03-30 10:40:04 +0000
commit256b79b0b737bc8aaf978c72da7b7edc2ddfd977 (patch)
tree8a4ffb75c7b367fdcab305664553a836f651cef4 /README.md
parentfeat: overhaul response system (diff)
downloadwindmark-256b79b0b737bc8aaf978c72da7b7edc2ddfd977.tar.xz
windmark-256b79b0b737bc8aaf978c72da7b7edc2ddfd977.zip
docs: fix old response documentation
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 6890483..ca96204 100644
--- a/README.md
+++ b/README.md
@@ -41,9 +41,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
windmark::Router::new()
.set_private_key_file("windmark_private.pem")
.set_certificate_file("windmark_public.pem")
- .mount("/", Box::new(|_| Response::Success("Hello, World!".into())))
+ .mount("/", Box::new(|_| Response::success("Hello, World!")))
.set_error_handler(Box::new(|_| {
- Response::PermanentFailure("This route does not exist!".into())
+ Response::permanent_failure("This route does not exist!")
}))
.run()
.await