Google Drive for Unity3D
|
Get HTTP response(Internal) More...
Public Member Functions | |
UnityWebResponse (UnityWebRequest request) | |
string | DumpHeaders () |
Properties | |
string | httpVersion [get, set] |
int | statusCode [get, set] |
string | reasonPhrase [get, set] |
Hashtable | headers [get, set] |
byte[] | bytes [get, set] |
String | text [get] |
Exception | error [get, set] |
Get HTTP response(Internal)
var request = new UnityWebRequest("https://homepage.com"); request.method = "POST"; request.headers["Content-Type"] = "application/json"; request.body = Encoding.UTF8.GetBytes("{\"hello\":\"world\"}"); var response = new UnityWebResponse(request); while (!response.isDone) yield return null; if (response.error == null) print(response.text);