set_headers

The set_headers method replaces all headers in the HTTP request with new headers.

To add a header without changing existing headers, use the method set_header.

Syntax

set_headers( headers )

Arguments

Argument Description
headers (table) The new HTTP headers to add to the request. The table must map header names to values.

Example

request:set_headers( {X-EXAMPLE="Example", X-ANOTHER="ANOTHER"} )

_HP_HTML5_bannerTitle.htm