fn redir(path: &str) -> HttpResponse {
	HttpResponse::Ok()
		.status(StatusCode::PERMANENT_REDIRECT)
		.encoding(ContentEncoding::Auto)
		.header(header::LOCATION, path)
		.header(header::SERVER, "KatWebX")
		.content_type("text/html; charset=utf-8")
		.body(["<a href='", path, "'>If this redirect does not work, click here</a>"].concat())
}
// Do a HTTP permanent redirect.
Do a HTTP permanent redirect.
Do a HTTP permanent redirect .
fn redir(path: &str) -> HttpResponse {
	HttpResponse::Ok()
		.status(StatusCode::PERMANENT_REDIRECT)
		.encoding(ContentEncoding::Auto)
		.header(header::LOCATION, path)
		.header(header::SERVER, "KatWebX")
		.content_type("text/html; charset=utf-8")
		.body(["<a href='", path, "'>If this redirect does not work, click here</a>"].concat())
}
fn redir ( path : & str ) -> HttpResponse { HttpResponse :: Ok ( ) . status ( StatusCode :: PERMANENT_REDIRECT ) . encoding ( ContentEncoding :: Auto ) . header ( header :: LOCATION , path ) . header ( header :: SERVER , " " ) . content_type ( " " ) . body ( [ " " , path , " " ] . concat ( ) ) }
Do a HTTP permanent redirect.
Do a HTTP permanent redirect .
path
&str
path
&str