Skip to main content

static_page

Function static_page 

Source
pub fn static_page(target: &str) -> Result<ErrorPages>
Expand description

便捷:一个最常见的组合——把 4xx/5xx 统一换成一张静态页。

页面本体由调用方用 ServeDir 服务(/50x.html 之类的路径),本函数只给映射。