headersParseResponse

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.

bool
headersParseResponse

Parameters

str string

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

headers soup.message_headers.MessageHeaders

#SoupMessageHeaders to store the header values in

ver soup.types.HTTPVersion

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

statusCode uint

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

reasonPhrase string

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

Return Value

Type: bool

success or failure.