utils/u_http_client
library
Classes
-
UHttpClient
-
HTTP with retries, offline/cache, upload/download progress, and automatic token refresh on expired tokens.
UHttpClient.send(method: "GET", endpoint: "$base/users", onSuccess: …, onError: …, onException: …)
-
UHttpClientResponse
-
Result of UHttpClient.send: exactly one of response (body), error (body) or exception (message) is set.
Enums
-
URequestBodyType
-
How UHttpClient encodes a Map body: json or formData (x-www-form-urlencoded).
Extensions
-
HTTP
on Response?
-
Status helpers on an http Response.
if (response.isSuccessful()) …