pub async fn reject_malformed<S>(stream: &mut S) -> Result<()>where
S: AsyncWrite + Unpin,Expand description
Answer a malformed-header connection with the 400 error envelope
and close it (the fail-closed half of the policy: never fall through
to HTTP parsing). The envelope is the gateway’s uniform error shape,
with a freshly generated correlation ID (no request exists yet to
inherit one from).