Skip to main content

client:parse_headers

Last updated March 2020

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?