[][src]Function http_parser::parser::is_valid_version

fn is_valid_version(version: &str) -> bool

Checks if the HTTP version is a valid version.

Versions considered valid are: HTTP/1, HTTP/1.0, HTTP/1.1, HTTP/2