roa 0.6.1

async web framework inspired by koajs, lightweight but powerful.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::http::StatusCode;
use crate::Status;

const BUG_HELP: &str =
    r"This is a bug of roa::body::file, please report it to https://github.com/Hexilee/roa.";

#[inline]
pub fn bug_report(message: impl ToString) -> Status {
    Status::new(
        StatusCode::INTERNAL_SERVER_ERROR,
        format!("{}\n{}", message.to_string(), BUG_HELP),
        false,
    )
}