add umbrella crate

This commit is contained in:
Aleksandr 2025-09-20 22:55:40 +03:00
parent d171fc723b
commit fe04530f84
17 changed files with 247 additions and 5 deletions

View file

@ -52,8 +52,8 @@ pub fn ok<O: IsResponse>(format: Format, ok: O) -> AxumResponse {
pub fn respond<O: IsResponse>(format: Format, res: O) -> AxumResponse {
let status_code = res.status_code();
let headers = [
header!("Server" => "Kurisu-desu"),
header!("Content-Type" => format.mime_type()),
header!("server" => "Kurisu-desu"),
header!("content-type" => format.mime_type()),
];
let mut body = Vec::with_capacity(128);