Function libdav::xmlutils::parse_statusline

source ·
pub fn parse_statusline(
    status_line: impl AsRef<str>,
) -> Result<StatusCode, InvalidStatusCode>
Expand description

Parses a status line string into a StatusCode.

Example input string: HTTP/1.1 200 OK.

§See also

§Errors

If the input string does not match a status line.