The set_header
method adds a header to the HTTP request.
set_header( name, value )
Argument | Description |
---|---|
name
|
(string) The name of the HTTP header to add to the request. |
value
|
(string or nil) The value of the HTTP header to add to the request. |
request:set_header("X-EXAMPLE", "Example")
|