headersParseResponse

fnbool headersParseResponse(string str, soup.message_headers.MessageHeaders headers, out soup.types.HTTPVersion ver, out uint statusCode, out string reasonPhrase)

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.

Parameters

strthe headers (up to, but not including, the trailing blank line)
headers#SoupMessageHeaders to store the header values in
verif non-null, will be filled in with the HTTP version
statusCodeif non-null, will be filled in with the status code
reasonPhraseif non-null, will be filled in with the reason phrase

Returns

success or failure.