Request():options()
Send an OPTIONS request to ask a server which methods and headers it allows.
Signature
options(): Response
Returns
Response - The server's answer, usually with an Allow header.
Example
local response = Request("https://api.example.com/users"):options()
toast("Allowed: " .. (response:getHeader("Allow") or "unknown"))
Compatible Version: 1.0.0.37 and up