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 |
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 |
success or failure. |