17 lines
275 B
Rust
17 lines
275 B
Rust
use {
|
|
hyper::{
|
|
StatusCode,
|
|
header::HeaderValue,
|
|
},
|
|
crate::{
|
|
build_html,
|
|
RECOVER_HTML,
|
|
},
|
|
};
|
|
|
|
|
|
pub fn recover() -> (String, StatusCode, HeaderValue) {
|
|
let restype: HeaderValue = "text/html".parse().unwrap();
|
|
(build_html(RECOVER_HTML), StatusCode::OK, restype)
|
|
}
|