httpRequest
Executes a HTTP request asynchronously.
Return
HttpRequestResult storing HTTP response data.
Parameters
URL that will be queried.
HTTP method. GET by default. See com.badlogic.gdx.Net.HttpMethods.
HTTP request headers mapped to their values. Empty by default.
time before the request is cancelled. If the request was cancelled, an exception will be thrown (type of exception might vary on each platform).
body of the request.
body of the request. Alternative to content. Pair of an InputStream along with its size.
whether 301 and 302 redirects are followed. Defaults to true.
whether a cross-origin request will include credentials. Relevant only on web platforms.
executed when the HTTP request is cancelled through coroutine cancellation. Optional, should be passed only if coroutine's Job.cancel can be called.