client:parse_headers
Name
client:parse_headers — Parse the headers of an HTTP response
Synopsis
require('msys.http.client')
client:parse_headers(headers);
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
msys.http.client.new, client:set_timeout, client:do_request, client:get_status, client:set_header, client:get_body client:get_headers