Unity - Scripting API: Networking.UnityWebRequest.UnityWebRequest
UnityWebRequest Constructor
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Declaration
public UnityWebRequest();
Declaration
public UnityWebRequest(string url);
Declaration
public UnityWebRequest(Uri uri);
Declaration
public UnityWebRequest(string url, string method);
Declaration
public UnityWebRequest(Uri uri, string method);
Parameters
| Parameter | Description |
|---|---|
| url | The target URL with which this UnityWebRequest will communicate. Also accessible via the url property. |
| uri | The target URI to which form data will be transmitted. |
| method | HTTP GET, POST, etc. methods. |
| downloadHandler | Replies from the server. |
| uploadHandler | Upload data to the server. |