client:get_headers

March 26, 2020 Contributors

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

msys.http.client.new, client:set_timeout, client:set_header, client:do_request, client:get_status, client:get_body, client:parse_headers