webserver.util.parseHeaders
| Syntax |
webserver.util.parseHeaders (response, adrHeaderTable)
|
| Params |
response is a string containing the raw HTTP response or request, including the body. adrHeaderTable is the address of a table to contain the parsed headers.
|
| Action |
Parses an HTTP response or request into a table of name-value pairs.
|
| Returns |
The first line of the HTTP response or request.
|
| Notes |
This verb expects the header to be terminated by a "\r\n\r\n" sequence as per the HTTP standard. If a header occurs multiple times in the request or response, the corresponding object in the table will be a list of strings. This verb is used internally by the webserver framework. It's called from webserver.server and also from tcp.httpClient.
|
| See Also |
webserver.server
|