headers_parse_response


Description:


public bool headers_parse_response (string str, int len, MessageHeaders headers, out HTTPVersion ver, out uint status_code, out string reason_phrase)

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)

len

length of str

headers

MessageHeaders to store the header values in

ver

if non-%NULL, will be filled in with the HTTP version

status_code

if non-%NULL, will be filled in with the status code

reason_phrase

if non-%NULL, will be filled in with the reason phrase

Returns:

success or failure.


Namespace: Soup
Package: libsoup-2.4