Function soup::headers_parse_status_line
source · pub fn headers_parse_status_line(
status_line: &str
) -> Option<(HTTPVersion, u32, GString)>
Expand description
Parses the HTTP Status-Line string in @status_line into @ver, @status_code, and @reason_phrase.
@status_line must be terminated by either “\0” or “\r\n”.
§status_line
an HTTP Status-Line
§Returns
true
if @status_line was parsed successfully.
§ver
if non-None
, will be filled in with the HTTP
version
§status_code
if non-None
, will be filled in with
the status code
§reason_phrase
if non-None
, will be filled in with
the reason phrase