Skip to main content

Name

client:parse_headers — Parse the headers of an HTTP response

Synopsis

require('msys.http.client')

client:parse_headers(headers);

headers: table

Description

Parse the headers of an HTTP response. Use this function in the following way:

local headers = client:parse_headers(client:get_headers());

Returns a table with the header name as a key and the header value as the value.

See Also

Was this page helpful?