ModulesHttp
Server
Makes a request to a url and returns the response.
Classes
VxHttpResponse
- status:
number
- ok:
boolean
- True if the status code is > 199 and < 300
- data?:
table
- errorText?:
string
- headers:
table<string, any>
VxHttpRequest
- method:
string
- "GET" | "POST" | "PUT" | "DELETE" | "PATCH"
- body?:
any
- headers?:
table<string, any>
vx.sendHttpRequest
- request:
VxHttpRequest
- Returns:
VxHttpResponse