HttpUnity

backend.http.HttpUnity (Class)

Static Members

http
request(options: backend.HttpRequestOptions, done: Function): Void
Name Type
options backend.HttpRequestOptions
done Function

http
download(url: String, targetPath: String, done: Function): Void
Name Type
url String
targetPath String
done Function

Instance Members

http
new(): Void

Private Members

http
nextRequestId: Int

http
requestCallbacks: Map

http
unityHandleWebRequestResponse(requestId: Int, downloadHandler: unityengine.networking.DownloadHandler): Void
Name Type
requestId Int
downloadHandler unityengine.networking.DownloadHandler

http
finishDownload(tmpTargetPath: String, targetPath: String, url: String, done: Function): Void
Name Type
tmpTargetPath String
targetPath String
url String
done Function

Metadata

Name Parameters
:hxGen -
:classCode "\npublic System.Collections.IEnumerator unityRunWebRequest(int id, UnityEngine.Networking.UnityWebRequest request) {\n yield return request.SendWebRequest();\n unityHandleWebRequestResponse(id, request.downloadHandler);\n}\n"