LuaHttpRequest Methods
This section describes the methods provided by LuaHttpRequest objects.
If you have a LuaHttpRequest object called request you can call its methods using the ':' operator. For example:
request:send()| Constructor | Description | 
|---|---|
| LuaHttpRequest:new | The constructor for a LuaHttpRequestobject (creates a newLuaHttpRequest). | 
| Method | Description | 
|---|---|
| send | Sends the HTTP request. | 
| set_body | Sets the body of the HTTP request. | 
| set_config | Specifies settings to use for sending the HTTP request. | 
| set_header | Adds a header to the HTTP request. | 
| set_headers | Replaces all headers in the HTTP request with new headers. | 
| set_method | Specifies the HTTP request method to use when sending the request, for example GETorPOST. | 
| set_url | Sets the URL that you want to send the HTTP request to. |