parseHttpVersion

Parses HTTP version from a slice returned in onVersion callback.

nothrow @safe @nogc pure
int
parseHttpVersion
(
const(char)[] ver
)

Return Value

Type: int

minor version (0 for HTTP/1.0 or 1 for HTTP/1.1) on success or -ParserError.invalidVersion on error

Meta