Function inspect_client_initial_settings
pub async fn inspect_client_initial_settings<T>(
io: T,
) -> Result<(Rewind<T>, Option<ClientInitialFrames>), Error>where
T: AsyncRead + AsyncWrite + Unpin + ExtensionsRef,Available on crate features
http-backend and http and std only.Expand description
Inspect only a client’s mandatory H2 prefix without emitting server bytes.
A different protocol returns None and rewinds every consumed byte. An H2 client must send its initial SETTINGS before waiting for server output, so this never waits for request HEADERS or a WINDOW_UPDATE. The caller owns the overall deadline. Native framing/settings validation and bounded observation are reused here.