Table of Contents

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

url string

請求的URL

postData string

要傳送的資料

contentType string

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