pub fn to_str(&self) -> &str  {

        unsafe {
            let slice = slice::from_raw_parts(self.data,self.len) ;
            return str::from_utf8(slice).unwrap();
        }            
   
    }
// convert nginx string to str slice
convert nginx string to str slice
convert nginx string to str slice
pub fn to_str(&self) -> &str  {
        unsafe {
            let slice = slice::from_raw_parts(self.data,self.len) ;
            return str::from_utf8(slice).unwrap();
        }            
    }
pub fn to_str ( & self ) -> & str { unsafe { let slice = slice :: from_raw_parts ( self . data , self . len ) ; return str :: from_utf8 ( slice ) . unwrap ( ) ; } }
convert nginx string to str slice
convert nginx string to str slice
&self
&self