add umbrella crate
This commit is contained in:
parent
d171fc723b
commit
fe04530f84
17 changed files with 247 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue