headersParseStatusLine

Parses the HTTP Status-Line string in status_line into ver, status_code, and reason_phrase.

status_line must be terminated by either "\0" or "\r\n".

bool
headersParseStatusLine

Parameters

statusLine string

an HTTP Status-Line

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

true if status_line was parsed successfully.