diff --git a/src/stream.rs b/src/stream.rs index 9f017bc..f08e7b1 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -98,4 +98,24 @@ impl rt::Write for MaybeHttpsStream { Self::Https(s) => Pin::new(s).poll_shutdown(cx), } } + + #[inline] + fn is_write_vectored(&self) -> bool { + match self { + Self::Http(s) => s.is_write_vectored(), + Self::Https(s) => s.is_write_vectored(), + } + } + + #[inline] + fn poll_write_vectored( + self: Pin<&mut Self>, + cx: &mut Context<'_>, + bufs: &[io::IoSlice<'_>], + ) -> Poll> { + match Pin::get_mut(self) { + Self::Http(s) => Pin::new(s).poll_write_vectored(cx, bufs), + Self::Https(s) => Pin::new(s).poll_write_vectored(cx, bufs), + } + } }