Interface IValidatedWebRequest
ValidatedWebRequest介面
public interface IValidatedWebRequest
Methods
Get(string)
發送驗證過的GET請求
UnityWebRequest Get(string url)
Parameters
url
string請求的URL
Returns
- UnityWebRequest
如果URL驗證通過返回UnityWebRequest物件,否則返回null
Post(string, string, string)
發送驗證過的POST請求
UnityWebRequest Post(string url, string postData, string contentType)
Parameters
Returns
- UnityWebRequest
如果URL驗證通過返回UnityWebRequest物件,否則返回null
Post(string, WWWForm)
發送驗證過的POST請求(使用表單資料)
UnityWebRequest Post(string url, WWWForm formData)
Parameters
url
string請求的URL
formData
WWWForm要傳送的表單資料
Returns
- UnityWebRequest
如果URL驗證通過返回UnityWebRequest物件,否則返回null