wip: feat: change request body from either to explicit enum

This commit is contained in:
Jun Kurihara 2023-12-12 20:17:13 +09:00
commit 1c18f3836a
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
8 changed files with 45 additions and 41 deletions

View file

@ -5,7 +5,7 @@ use crate::{
error::*,
globals::Globals,
hyper_ext::{
body::{IncomingOr, ResponseBody},
body::{RequestBody, ResponseBody},
rt::LocalExecutor,
},
log::*,
@ -39,7 +39,7 @@ where
{
handler
.handle_request(
req.map(IncomingOr::Left),
req.map(RequestBody::Incoming),
client_addr,
listen_addr,
tls_enabled,