fix proxy response bug, add log for response object

This commit is contained in:
Jun Kurihara 2022-07-10 11:21:17 +09:00
commit 8a4149cbf2
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
4 changed files with 50 additions and 7 deletions

View file

@ -4,10 +4,10 @@ use std::fmt::Display;
////////////////////////////////////////////////////
// Functions of utils for request messages
pub trait MsgLog {
pub trait ReqLog {
fn log<T: Display + ToCanonical>(self, src: &T, extra: Option<&str>);
}
impl<B> MsgLog for &Request<B> {
impl<B> ReqLog for &Request<B> {
fn log<T: Display + ToCanonical>(self, src: &T, extra: Option<&str>) {
let canonical_src = src.to_canonical();