pub fn send_request(&mut self, fin: bool) -> Result<(u64, Vec<Header>)> {
            let req = vec![
                Header::new(b":method", b"GET"),
                Header::new(b":scheme", b"https"),
                Header::new(b":authority", b"quic.tech"),
                Header::new(b":path", b"/test"),
                Header::new(b"user-agent", b"quiche-test"),
            ];

            let stream =
                self.client.send_request(&mut self.pipe.client, &req, fin)?;

            self.advance().ok();

            Ok((stream, req))
        }
/// Sends a request from client with default headers.
///
/// On success it returns the newly allocated stream and the headers.
Sends a request from client with default headers.
On success it returns the newly allocated stream and the headers.
Sends a request from client with default headers . On success it returns the newly allocated stream and the headers .
pub fn send_request(&mut self, fin: bool) -> Result<(u64, Vec<Header>)> {
            let req = vec![
                Header::new(b":method", b"GET"),
                Header::new(b":scheme", b"https"),
                Header::new(b":authority", b"quic.tech"),
                Header::new(b":path", b"/test"),
                Header::new(b"user-agent", b"quiche-test"),
            ];
            let stream =
                self.client.send_request(&mut self.pipe.client, &req, fin)?;
            self.advance().ok();
            Ok((stream, req))
        }
pub fn send_request ( & mut self , fin : bool ) -> Result < ( u64 , Vec < Header > ) > { let req = vec ! [ Header new ( b" " b" " ) Header new ( b" " b" " ) Header new ( b" " b" " ) Header new ( b" " b" " ) Header new ( b" " b" " ) ] ; let stream = self . client . send_request ( & mut self . pipe . client , & req , fin ) ? ; self . advance ( ) . ok ( ) ; Ok ( ( stream , req ) ) }
Sends a request from client with default headers.
Sends a request from client with default headers .
&mut self
fin
bool
&mut self
fin
bool