Function

Soup-3.0Soupheaders_parse_response

  • 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: string

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

    • len: number

      length of str

    • headers: MessageHeaders

      Soup.MessageHeaders to store the header values in

    Returns [boolean, Soup.HTTPVersion, number, string]

    success or failure.