wip: feat: change request body from either to explicit enum
This commit is contained in:
parent
008b62a925
commit
1c18f3836a
8 changed files with 45 additions and 41 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue