request
abstract fun request(@NonNull request: HttpRequest, @NonNull callback: HttpResponseCallback): Long
Content copied to clipboard
Sends (or enqueues) a platform's native HTTP Request.
Return
ID handle to cancel the request.
Parameters
request
HttpRequest to provide url, headers and other information.
callback
Callback to be called in response to the request.