Function peek_http_input
pub async fn peek_http_input<PeekableInput>(
input: PeekableInput,
) -> Result<(Option<HttpPeekVersion>, <PeekableInput as PeekIoProvider>::Mapped<PrefixedIo<ReplayReader, <PeekableInput as PeekIoProvider>::PeekIo>, PrefixedIo<ReplayReader, <PeekableInput as PeekIoProvider>::PeekEgressIo>>), Box<dyn Error + Send + Sync>>where
PeekableInput: PeekIoProvider,
<PeekableInput as PeekIoProvider>::PeekIo: Unpin,
<PeekableInput as PeekIoProvider>::PeekEgressIo: Unpin,Available on crate feature
net only.Expand description
Detect HTTP using HttpPeekOptions::default and return an input that
replays every byte consumed during detection, on both sides.