fix proxy response bug, add log for response object
This commit is contained in:
parent
1a80e405b5
commit
8a4149cbf2
4 changed files with 50 additions and 7 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue