async fn write_response(&self, bytes: &mut Vec<u8>) -> Result<()> {
        use std::io::Write as _;

        let mut m = Vec::new();

        write!(m, "Content-Length: {}\r\n", bytes.len())?;
        write!(m, "\r\n")?;
        m.append(bytes);

        let mut stdout = self.stdout.lock().await;
        stdout.write_all(&m).await?;
        stdout.flush().await?;
        Ok(())
    }
/// Write the given response body.
Write the given response body.
Write the given response body .
async fn write_response(&self, bytes: &mut Vec<u8>) -> Result<()> {
        use std::io::Write as _;
        let mut m = Vec::new();
        write!(m, "Content-Length: {}\r\n", bytes.len())?;
        write!(m, "\r\n")?;
        m.append(bytes);
        let mut stdout = self.stdout.lock().await;
        stdout.write_all(&m).await?;
        stdout.flush().await?;
        Ok(())
    }
async fn write_response ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) > { use std :: io :: Write as _ ; let mut m = Vec :: new ( ) ; write ! ( m " \r \n " bytes len ( ) ) ? ; write ! ( m " \r \n " ) ? ; m . append ( bytes ) ; let mut stdout = self . stdout . lock ( ) . await ; stdout . write_all ( & m ) . await ? ; stdout . flush ( ) . await ? ; Ok ( ( ) ) }
Write the given response body.
Write the given response body .
&self
bytes
&mut Vec<u8>
&self
bytes
&mut Vec<u8>