[Fix] Now using Axum instead of Hyper and Http2 instead of 1

This commit is contained in:
Alex Emmet 2026-02-12 12:33:09 +01:00
commit 7f78c8669b
7 changed files with 110 additions and 518 deletions

View file

@ -10,14 +10,12 @@ use crate::{
};
use axum::http::HeaderValue;
use base64::Engine as _;
use http_body_util::{Full, StreamBody};
use hyper::body::{Body, Bytes, Frame};
use http_body_util::Full;
use hyper::body::Bytes;
use hyper::header::{CONTENT_DISPOSITION, CONTENT_LENGTH, CONTENT_TYPE};
use hyper::{HeaderMap, Response as HttpResponse, StatusCode};
use json::JsonValue;
use json::number::Number;
use tokio::fs::File;
use tokio_util::io::ReaderStream;
pub async fn handle(
path: &str,