headersParseResponse
fn
bool 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
str | the headers (up to, but not including, the trailing blank line) |
headers | #SoupMessageHeaders to store the header values in |
ver | if non-null, will be filled in with the HTTP version |
statusCode | if non-null, will be filled in with the status code |
reasonPhrase | if non-null, will be filled in with the reason phrase |
Returns
success or failure.