pub fn send_response(
            &mut self, stream: u64, fin: bool,
        ) -> Result<Vec<Header>> {
            let resp = vec![
                Header::new(b":status", b"200"),
                Header::new(b"server", b"quiche-test"),
            ];

            self.server.send_response(
                &mut self.pipe.server,
                stream,
                &resp,
                fin,
            )?;

            self.advance().ok();

            Ok(resp)
        }
/// Sends a response from server with default headers.
///
/// On success it returns the headers.
Sends a response from server with default headers.
On success it returns the headers.
Sends a response from server with default headers . On success it returns the headers .
pub fn send_response(
            &mut self, stream: u64, fin: bool,
        ) -> Result<Vec<Header>> {
            let resp = vec![
                Header::new(b":status", b"200"),
                Header::new(b"server", b"quiche-test"),
            ];
            self.server.send_response(
                &mut self.pipe.server,
                stream,
                &resp,
                fin,
            )?;
            self.advance().ok();
            Ok(resp)
        }
pub fn send_response ( & mut self , stream : u64 , fin : bool , ) -> Result < Vec < Header > > { let resp = vec ! [ Header new ( b" " b" " ) Header new ( b" " b" " ) ] ; self . server . send_response ( & mut self . pipe . server , stream , & resp , fin , ) ? ; self . advance ( ) . ok ( ) ; Ok ( resp ) }
Sends a response from server with default headers.
Sends a response from server with default headers .
&mut self
stream
u64
fin
bool
&mut self
stream
u64
fin
bool