headersParse

fun headersParse(str: String, len: <Error class: unknown class>, dest: MessageHeaders): Boolean

Parses the headers of an HTTP request or response in @str and stores the results in @dest.

Beware that @dest may be modified even on failure.

This is a low-level method; normally you would use func@headers_parse_request or func@headers_parse_response.

Return

success or failure

Parameters

str

the header string (including the Request-Line or Status-Line, but not the trailing blank line)

len

length of @str

dest

#SoupMessageHeaders to store the header values in