pub fn headers_parse_response(
    str: &str,
    headers: &MessageHeaders
) -> Option<(HTTPVersion, u32, GString)>
Expand description

Parses the headers of an HTTP response in @str and stores the results in @ver, @status_code, @reason_phrase, and @headers.

Beware that @headers may be modified even on failure.

§str

the headers (up to, but not including, the trailing blank line)

§len

length of @str

§headers

#SoupMessageHeaders to store the header values in

§Returns

success or failure.

§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