Request():options()
Sendet eine OPTIONS-Anfrage, um einen Server zu fragen, welche Methoden und Header er erlaubt.
Signatur
options(): Response
Rückgabe
Response – Die Antwort des Servers, meist mit einem Allow-Header.
Beispiel
local response = Request("https://api.example.com/users"):options()
toast("Allowed: " .. (response:getHeader("Allow") or "unknown"))
Kompatible Version: 1.0.0.37 und höher