Skip to main content

shared http:fetch

info

Available methods: DELETE, POST, GET, PUT, HEAD, OPTIONS, PATCH

void http:fetch(url, headers, callback)

Queries the internetz using fetch.
By default it uses the method GET.


Parameters

TypeNameDescriptionOptional
stringurlNo description
tableheadersEX: { METHOD = 'GET' }
functioncallbackfun(hasErrored: boolean, data: string): void