fn debug(&mut self, kind: InfoType, data: &[u8]) {
        match kind {
            InfoType::Text => trace!("{}", String::from_utf8_lossy(data).trim_end()),
            InfoType::HeaderIn | InfoType::DataIn => trace!(target: "chttp::wire", "<< {}", format_byte_string(data)),
            InfoType::HeaderOut | InfoType::DataOut => trace!(target: "chttp::wire", ">> {}", format_byte_string(data)),
            _ => (),
        }
    }
// Gets called by curl whenever it wishes to log a debug message.
Gets called by curl whenever it wishes to log a debug message.
Gets called by curl whenever it wishes to log a debug message .
fn debug(&mut self, kind: InfoType, data: &[u8]) {
        match kind {
            InfoType::Text => trace!("{}", String::from_utf8_lossy(data).trim_end()),
            InfoType::HeaderIn | InfoType::DataIn => trace!(target: "chttp::wire", "<< {}", format_byte_string(data)),
            InfoType::HeaderOut | InfoType::DataOut => trace!(target: "chttp::wire", ">> {}", format_byte_string(data)),
            _ => (),
        }
    }
fn debug ( & mut self , kind : InfoType , data : & [ u8 ] ) { match kind { InfoType :: Text => trace ! ( " " String from_utf8_lossy ( data ) trim_end ( ) ) , InfoType :: HeaderIn | InfoType :: DataIn => trace ! ( target " " " " format_byte_string ( data ) ) , InfoType :: HeaderOut | InfoType :: DataOut => trace ! ( target " " " " format_byte_string ( data ) ) , _ => ( ) , } }
Gets called by curl whenever it wishes to log a debug message.
Gets called by curl whenever it wishes to log a debug message .
&mut self
kind
InfoType
data
&[u8]
&mut self
kind
InfoType
data
&[u8]