HTTP Network Library (Http)
Http Library ("http" feature)
Thread Pool
Http.blob(response: map) -> blob
const resp = await Http.fetch("https://restcountries.com/v3.1/region/europe");
const body = Http.blob(resp);Http.client_error(response: map) -> bool
const resp = await Http.fetch("https://restcountries.com/v3.1/region/europe");
assert_not(Http.client_error(resp));async Http.fetch(url: str, method: str = "get", body: str | blob = null, headers: map = null, timeout: seconds = null, query: map = null, bearer: str = null) -> Promise
const resp = await Http.fetch("https://restcountries.com/v3.1/region/europe");
assert(resp.get('bytes').len() > 100);Http.parse(response: map, context: obj = self) -> obj
Http.server_error(response: map) -> bool
Http.success(response: map) -> bool
Http.text(response: map) -> str
Last updated