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.
set_headers( headers )
| Argument | Description | 
|---|---|
| headers | (table) The new HTTP headers to add to the request. The table must map header names to values. | 
request:set_headers( {X-EXAMPLE="Example", X-ANOTHER="ANOTHER"} )
        
        |  |