[Fix] Now using Axum instead of Hyper and Http2 instead of 1
This commit is contained in:
parent
fcdd13bfc8
commit
7f78c8669b
7 changed files with 110 additions and 518 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue