fn send_preface(&mut self) -> Result<()> {
        let preface = b"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n";
        try!(self.conn.write(preface));

        // write settings frame
        let frame = SettingsFrame::default();
        try!(self.conn.write_frame(frame));

        Ok(())
    }
/// send preface string and settings frame
// TODO: add settings
send preface string and settings frame
TODO: add settings
send preface string and settings frame TODO : add settings
fn send_preface(&mut self) -> Result<()> {
        let preface = b"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n";
        try!(self.conn.write(preface));
        // write settings frame
        let frame = SettingsFrame::default();
        try!(self.conn.write_frame(frame));
        Ok(())
    }
fn send_preface ( & mut self ) -> Result < ( ) > { let preface = b" \r \n \r \n \r \n \r \n " ; try ! ( self conn write ( preface ) ) ; // write settings frame let frame = SettingsFrame :: default ( ) ; try ! ( self conn write_frame ( frame ) ) ; Ok ( ( ) ) }
send preface string and settings frame
TODO: add settings
send preface string and settings frame TODO : add settings
&mut self
&mut self