From 299f53da9ee08c8b326bd913c5911a234e50726d Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 27 Mar 2022 04:20:30 +0000 Subject: feat(response): add remaining responses (redirect) --- examples/windmark.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') diff --git a/examples/windmark.rs b/examples/windmark.rs index 1cccd70..e1e576e 100644 --- a/examples/windmark.rs +++ b/examples/windmark.rs @@ -108,6 +108,9 @@ async fn main() -> Result<(), Box> { } }) .mount("/error", |_| Response::CertificateNotValid("no".into())) + .mount("/redirect", |_| { + Response::PermanentRedirect("gemini://localhost/test".into()) + }) .run() .await } -- cgit v1.2.3