set_method
Specifies the HTTP request method to use when sending the request, for example GET
or POST
.
Syntax
set_method( method )
Arguments
Argument | Description |
---|---|
method
|
(string) The HTTP request method to use. |
Example
request:set_method("POST")