Http
The Http element allows you to make HTTP requests.
property Http.Status statusread only
The status of the Http element.
Http.Status.Idle
Http.Status.Loading
Http.Status.Ready
Http.Status.Error
event completed()
The completed event is emitted when a HTTP request finishes or fails. The request response is available from the Http.response property.
async function get(Url request) → Http.Response
async function get(Http.Request request) → Http.Response
static async function Http.get(Url request) → Http.Response
static async function Http.get(Http.Request request) → Http.Response
Make a GET request.
optional Int timeout
The timeout interval for the request in milliseconds.
The timeout is not a time limit on the entire response download; rather the request is aborted if the server stops responding for more than timeout milliseconds.
async function post(Url request) → Http.Response
async function post(Http.Request request) → Http.Response
static async function Http.post(Url request) → Http.Response
static async function Http.post(Http.Request request) → Http.Response
Make a POST request.
optional Int timeout
The timeout interval for the request in milliseconds.
The timeout is not a time limit on the entire response download; rather the request is aborted if the server stops responding for more than timeout milliseconds.
async function request(String method, Url request) → Http.Response
async function request(String method, Http.Request request) → Http.Response
static async function Http.request(String method, Url request) → Http.Response
static async function Http.request(String method, Http.Request request) → Http.Response
Make a generic method request. These methods can be used to issue other common HTTP request types, such as PUT or PATCH, or an entirely custom request method.
optional Int timeout
The timeout interval for the request in milliseconds.
The timeout is not a time limit on the entire response download; rather the request is aborted if the server stops responding for more than timeout milliseconds.