Google Drive for Unity3D

Midworld.UnityWebResponse Class Reference

Get HTTP response(Internal) More...

Inheritance diagram for Midworld.UnityWebResponse:
Midworld.UnityCoroutine

List of all members.

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]

Detailed Description

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);

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Properties