Skip to main content

varint

Function varint 

Source
pub fn varint(code: Code) -> VarInt
Expand description

An HTTP/3 error code as the QUIC application error code that carries it.

RFC 9114 §8 defines the two to be the same number; every registered code is far below the varint maximum, so the conversion cannot fail for anything this server sends.

Public because the suite’s client resets streams with the same codes and had grown a byte-identical copy of this.