diff options
Diffstat (limited to 'src/auth_handler/handler_info.rs')
-rw-r--r-- | src/auth_handler/handler_info.rs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/auth_handler/handler_info.rs b/src/auth_handler/handler_info.rs deleted file mode 100644 index 0aeaa09..0000000 --- a/src/auth_handler/handler_info.rs +++ /dev/null @@ -1,30 +0,0 @@ -use std::io; - -use tokio::prelude::*; - -use http::{Request, Response, StatusCode}; -use bytes::Bytes; - -use ::ApplicationState; -use super::AuthHandler; - -pub(in super) fn respond<'a>(auth_handler: &AuthHandler, state: &ApplicationState, req: &Request<Bytes>, - path_rest: &'a str) -> Response<String> { - let body = html! { - : horrorshow::helper::doctype::HTML; - html { - head { - title: "Hello world!"; - } - body { - h1(id = "heading") { - : "Hello! This is <html />"; - : "And path rest is: "; - : path_rest; - : "... ok :)"; - } - } - } - }; - Response::builder().body(body.to_string()).unwrap() -}
\ No newline at end of file |