Skip to main content

client:get_headers

Last updated March 2020

Name

client:get_headers — Get HTTP headers

Synopsis

require('msys.http.client')

client:get_headers();

Description

Get the HTTP headers. Use this function in the following way:

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

This function returns the raw HTTP headers as a table. Use client:parse_headers to create a key/value table where the key is the header name.

See Also

Was this page helpful?