Function kvarn_async::prelude::parse::version
source · pub fn version(bytes: &[u8]) -> Option<Version>
Expand description
Parses a Version
.
bytes
have to be the right length,
8 bytes for HTTP/0.9-1.1 and 6 bytes for HTTP/2-