C# Класс UnityTools.IO.UnityAgentRequest

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_data UnityAgentDataType
_queryVars string>.Dictionary
_webRequest System.Net.HttpWebRequest

Открытые методы

Метод Описание
Begin ( ) : UnityTask
Query ( string>.Dictionary queryVars ) : UnityAgentRequest

Sets all the query string pairs of this request.

Query ( string key, string value ) : UnityAgentRequest

Sets the value of a query string in this request.

Send ( JsonData data ) : UnityAgentRequest

Sets the body data of the request as a JSON object. This method assumes the use of the application/x-www-form-urlencoded data type (UnityAgentFormDataType) and will append the data each time this method is called seperated by an ampersand. To set a custom data type use the other overloads.

Send ( UnityAgentDataType data ) : UnityAgentRequest

Sets the data of a request. This is a low level method. You would usually one of the other overloads of this method to send text or JSON data.

Send ( string data ) : UnityAgentRequest

Sets the body data of the request as a string. This method assumes the use of the application/x-www-form-urlencoded data type (UnityAgentFormDataType) and will append the data each time this method is called seperated by an ampersand. To set a custom data type use the other overloads.

Set ( string>.Dictionary headers ) : UnityAgentRequest

Sets all the headers of this request.

Set ( string key, string value ) : UnityAgentRequest

Sets the value of a header in this request. Returns this UnityAgentRequest object so that calls can be chained.

UnityAgentRequest ( string verb, string url ) : System

Описание методов

Begin() публичный Метод

public Begin ( ) : UnityTask
Результат UnityTask

Query() публичный Метод

Sets all the query string pairs of this request.
public Query ( string>.Dictionary queryVars ) : UnityAgentRequest
queryVars string>.Dictionary
Результат UnityAgentRequest

Query() публичный Метод

Sets the value of a query string in this request.
public Query ( string key, string value ) : UnityAgentRequest
key string The key of the query string pair..
value string The value of the query string pair.
Результат UnityAgentRequest

Send() публичный Метод

Sets the body data of the request as a JSON object. This method assumes the use of the application/x-www-form-urlencoded data type (UnityAgentFormDataType) and will append the data each time this method is called seperated by an ampersand. To set a custom data type use the other overloads.
public Send ( JsonData data ) : UnityAgentRequest
data LitJson.JsonData The body data of the request.
Результат UnityAgentRequest

Send() публичный Метод

Sets the data of a request. This is a low level method. You would usually one of the other overloads of this method to send text or JSON data.
public Send ( UnityAgentDataType data ) : UnityAgentRequest
data UnityAgentDataType
Результат UnityAgentRequest

Send() публичный Метод

Sets the body data of the request as a string. This method assumes the use of the application/x-www-form-urlencoded data type (UnityAgentFormDataType) and will append the data each time this method is called seperated by an ampersand. To set a custom data type use the other overloads.
public Send ( string data ) : UnityAgentRequest
data string The body data of the request.
Результат UnityAgentRequest

Set() публичный Метод

Sets all the headers of this request.
public Set ( string>.Dictionary headers ) : UnityAgentRequest
headers string>.Dictionary
Результат UnityAgentRequest

Set() публичный Метод

Sets the value of a header in this request. Returns this UnityAgentRequest object so that calls can be chained.
public Set ( string key, string value ) : UnityAgentRequest
key string The name of the header (the key).
value string The value of the header
Результат UnityAgentRequest

UnityAgentRequest() публичный Метод

public UnityAgentRequest ( string verb, string url ) : System
verb string
url string
Результат System

Описание свойств

_data защищенное свойство

protected UnityAgentDataType,UnityTools.IO _data
Результат UnityAgentDataType

_queryVars защищенное свойство

protected Dictionary _queryVars
Результат string>.Dictionary

_webRequest защищенное свойство

protected HttpWebRequest,System.Net _webRequest
Результат System.Net.HttpWebRequest