Class UnityWebRequest
Inheritance
UnityWebRequest
Assembly: UnityEngine.dll
Syntax
public class UnityWebRequest : IDisposable
Constructors
|
Improve this Doc
View Source
UnityWebRequest()
Declaration
|
Improve this Doc
View Source
UnityWebRequest(String)
Declaration
public UnityWebRequest(string url)
Parameters
Type |
Name |
Description |
String |
url |
|
|
Improve this Doc
View Source
UnityWebRequest(String, String)
Declaration
public UnityWebRequest(string url, string method)
Parameters
|
Improve this Doc
View Source
UnityWebRequest(String, String, DownloadHandler, UploadHandler)
Declaration
public UnityWebRequest(string url, string method, DownloadHandler downloadHandler, UploadHandler uploadHandler)
Parameters
|
Improve this Doc
View Source
UnityWebRequest(Uri)
Declaration
public UnityWebRequest(Uri uri)
Parameters
Type |
Name |
Description |
Uri |
uri |
|
|
Improve this Doc
View Source
UnityWebRequest(Uri, String)
Declaration
public UnityWebRequest(Uri uri, string method)
Parameters
|
Improve this Doc
View Source
UnityWebRequest(Uri, String, DownloadHandler, UploadHandler)
Declaration
public UnityWebRequest(Uri uri, string method, DownloadHandler downloadHandler, UploadHandler uploadHandler)
Parameters
Fields
|
Improve this Doc
View Source
kHttpVerbCREATE
Declaration
public const string kHttpVerbCREATE = "CREATE"
Field Value
|
Improve this Doc
View Source
kHttpVerbDELETE
Declaration
public const string kHttpVerbDELETE = "DELETE"
Field Value
|
Improve this Doc
View Source
kHttpVerbGET
Declaration
public const string kHttpVerbGET = "GET"
Field Value
|
Improve this Doc
View Source
kHttpVerbHEAD
Declaration
public const string kHttpVerbHEAD = "HEAD"
Field Value
|
Improve this Doc
View Source
kHttpVerbPOST
Declaration
public const string kHttpVerbPOST = "POST"
Field Value
|
Improve this Doc
View Source
kHttpVerbPUT
Declaration
public const string kHttpVerbPUT = "PUT"
Field Value
Properties
|
Improve this Doc
View Source
certificateHandler
Declaration
public CertificateHandler certificateHandler { get; set; }
Property Value
|
Improve this Doc
View Source
chunkedTransfer
Declaration
public bool chunkedTransfer { get; set; }
Property Value
|
Improve this Doc
View Source
disposeCertificateHandlerOnDispose
Declaration
public bool disposeCertificateHandlerOnDispose { get; set; }
Property Value
|
Improve this Doc
View Source
disposeDownloadHandlerOnDispose
Declaration
public bool disposeDownloadHandlerOnDispose { get; set; }
Property Value
|
Improve this Doc
View Source
disposeUploadHandlerOnDispose
Declaration
public bool disposeUploadHandlerOnDispose { get; set; }
Property Value
downloadedBytes
Declaration
public ulong downloadedBytes { get; }
Property Value
|
Improve this Doc
View Source
downloadHandler
Declaration
public DownloadHandler downloadHandler { get; set; }
Property Value
|
Improve this Doc
View Source
downloadProgress
Declaration
public float downloadProgress { get; }
Property Value
|
Improve this Doc
View Source
error
Declaration
public string error { get; }
Property Value
isDone
Declaration
public bool isDone { get; }
Property Value
|
Improve this Doc
View Source
isError
Declaration
[Obsolete("UnityWebRequest.isError has been renamed to isNetworkError for clarity. (UnityUpgradable) -> isNetworkError", false)]
public bool isError { get; }
Property Value
isHttpError
Declaration
public bool isHttpError { get; }
Property Value
isModifiable
Declaration
public bool isModifiable { get; }
Property Value
isNetworkError
Declaration
public bool isNetworkError { get; }
Property Value
|
Improve this Doc
View Source
method
Declaration
public string method { get; set; }
Property Value
|
Improve this Doc
View Source
redirectLimit
Declaration
public int redirectLimit { get; set; }
Property Value
responseCode
Declaration
public long responseCode { get; }
Property Value
|
Improve this Doc
View Source
timeout
Declaration
public int timeout { get; set; }
Property Value
uploadedBytes
Declaration
public ulong uploadedBytes { get; }
Property Value
|
Improve this Doc
View Source
uploadHandler
Declaration
public UploadHandler uploadHandler { get; set; }
Property Value
|
Improve this Doc
View Source
uploadProgress
Declaration
public float uploadProgress { get; }
Property Value
|
Improve this Doc
View Source
uri
Declaration
public Uri uri { get; set; }
Property Value
|
Improve this Doc
View Source
url
Declaration
public string url { get; set; }
Property Value
|
Improve this Doc
View Source
useHttpContinue
Declaration
public bool useHttpContinue { get; set; }
Property Value
Methods
Abort()
Declaration
|
Improve this Doc
View Source
ClearCookieCache()
Declaration
public static void ClearCookieCache()
|
Improve this Doc
View Source
ClearCookieCache(Uri)
Declaration
public static void ClearCookieCache(Uri uri)
Parameters
Type |
Name |
Description |
Uri |
uri |
|
|
Improve this Doc
View Source
Delete(String)
Declaration
public static UnityWebRequest Delete(string uri)
Parameters
Type |
Name |
Description |
String |
uri |
|
Returns
|
Improve this Doc
View Source
Delete(Uri)
Declaration
public static UnityWebRequest Delete(Uri uri)
Parameters
Type |
Name |
Description |
Uri |
uri |
|
Returns
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
EscapeURL(String)
Declaration
public static string EscapeURL(string s)
Parameters
Type |
Name |
Description |
String |
s |
|
Returns
|
Improve this Doc
View Source
EscapeURL(String, Encoding)
Declaration
public static string EscapeURL(string s, Encoding e)
Parameters
Returns
|
Improve this Doc
View Source
Finalize()
Declaration
protected void Finalize()
|
Improve this Doc
View Source
GenerateBoundary()
Declaration
public static byte[] GenerateBoundary()
Returns
|
Improve this Doc
View Source
Get(String)
Declaration
public static UnityWebRequest Get(string uri)
Parameters
Type |
Name |
Description |
String |
uri |
|
Returns
|
Improve this Doc
View Source
Get(Uri)
Declaration
public static UnityWebRequest Get(Uri uri)
Parameters
Type |
Name |
Description |
Uri |
uri |
|
Returns
Declaration
public string GetRequestHeader(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Declaration
public string GetResponseHeader(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
Declaration
public Dictionary<string, string> GetResponseHeaders()
Returns
|
Improve this Doc
View Source
Head(String)
Declaration
public static UnityWebRequest Head(string uri)
Parameters
Type |
Name |
Description |
String |
uri |
|
Returns
|
Improve this Doc
View Source
Head(Uri)
Declaration
public static UnityWebRequest Head(Uri uri)
Parameters
Type |
Name |
Description |
Uri |
uri |
|
Returns
|
Improve this Doc
View Source
Post(String, Dictionary<String, String>)
Declaration
public static UnityWebRequest Post(string uri, Dictionary<string, string> formFields)
Parameters
Returns
|
Improve this Doc
View Source
Post(String, List<IMultipartFormSection>)
Declaration
public static UnityWebRequest Post(string uri, List<IMultipartFormSection> multipartFormSections)
Parameters
Returns
|
Improve this Doc
View Source
Post(String, List<IMultipartFormSection>, Byte[])
Declaration
public static UnityWebRequest Post(string uri, List<IMultipartFormSection> multipartFormSections, byte[] boundary)
Parameters
Returns
|
Improve this Doc
View Source
Post(String, String)
Declaration
public static UnityWebRequest Post(string uri, string postData)
Parameters
Returns
|
Improve this Doc
View Source
Post(String, WWWForm)
Declaration
public static UnityWebRequest Post(string uri, WWWForm formData)
Parameters
Returns
|
Improve this Doc
View Source
Post(Uri, Dictionary<String, String>)
Declaration
public static UnityWebRequest Post(Uri uri, Dictionary<string, string> formFields)
Parameters
Returns
|
Improve this Doc
View Source
Post(Uri, List<IMultipartFormSection>)
Declaration
public static UnityWebRequest Post(Uri uri, List<IMultipartFormSection> multipartFormSections)
Parameters
Returns
|
Improve this Doc
View Source
Post(Uri, List<IMultipartFormSection>, Byte[])
Declaration
public static UnityWebRequest Post(Uri uri, List<IMultipartFormSection> multipartFormSections, byte[] boundary)
Parameters
Returns
|
Improve this Doc
View Source
Post(Uri, String)
Declaration
public static UnityWebRequest Post(Uri uri, string postData)
Parameters
Type |
Name |
Description |
Uri |
uri |
|
String |
postData |
|
Returns
|
Improve this Doc
View Source
Post(Uri, WWWForm)
Declaration
public static UnityWebRequest Post(Uri uri, WWWForm formData)
Parameters
Returns
|
Improve this Doc
View Source
Put(String, Byte[])
Declaration
public static UnityWebRequest Put(string uri, byte[] bodyData)
Parameters
Returns
|
Improve this Doc
View Source
Put(String, String)
Declaration
public static UnityWebRequest Put(string uri, string bodyData)
Parameters
Returns
|
Improve this Doc
View Source
Put(Uri, Byte[])
Declaration
public static UnityWebRequest Put(Uri uri, byte[] bodyData)
Parameters
Type |
Name |
Description |
Uri |
uri |
|
Byte[] |
bodyData |
|
Returns
|
Improve this Doc
View Source
Put(Uri, String)
Declaration
public static UnityWebRequest Put(Uri uri, string bodyData)
Parameters
Type |
Name |
Description |
Uri |
uri |
|
String |
bodyData |
|
Returns
|
Improve this Doc
View Source
Send()
Declaration
[Obsolete("Use SendWebRequest. It returns a UnityWebRequestAsyncOperation which contains a reference to the WebRequest object.", false)]
public AsyncOperation Send()
Returns
|
Improve this Doc
View Source
SendWebRequest()
Declaration
public UnityWebRequestAsyncOperation SendWebRequest()
Returns
|
Improve this Doc
View Source
Declaration
public static byte[] SerializeFormSections(List<IMultipartFormSection> multipartFormSections, byte[] boundary)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static byte[] SerializeSimpleForm(Dictionary<string, string> formFields)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public void SetRequestHeader(string name, string value)
Parameters
|
Improve this Doc
View Source
UnEscapeURL(String)
Declaration
public static string UnEscapeURL(string s)
Parameters
Type |
Name |
Description |
String |
s |
|
Returns
|
Improve this Doc
View Source
UnEscapeURL(String, Encoding)
Declaration
public static string UnEscapeURL(string s, Encoding e)
Parameters
Returns
Implements
Extension Methods