headers
this is used to add headers to the page that is served.
to create a headers object, use lib.response.headers.new(text)
. it can then be added to a page using page:setHeaders(headers)
!
functions
headers.new(headers)
headers
is the list of headers that will be applied to the page.- this returns a
headers
object.
if headers is not supplied, the default headers are:
- ["Content-Type"] = "text/html",
however, you can override these.