C# Class UnityTools.IO.UnityAgent

A REST API Client designed with ease of use in mind. Based on SuperAgent
显示文件 Open project: NoxHarmonium/unity-tools Class Usage Examples

Public Methods

Method Description
Connect ( string url ) : UnityAgentRequest

This specification reserves the method name CONNECT for use with a proxy that can dynamically switch to being a tunnel (e.g. SSL tunneling [44]).

Delete ( string url ) : UnityAgentRequest

The DELETE method requests that the origin server delete the resource identified by the Request-URI.

Get ( string url ) : UnityAgentRequest

The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI.

Head ( string url ) : UnityAgentRequest

The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response.

Options ( string url ) : UnityAgentRequest

The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI.

Patch ( string url ) : UnityAgentRequest

The PATCH method is used to apply partial modifications to a resource.

Post ( string url ) : UnityAgentRequest

The actual function performed by the POST method is determined by the server and is usually dependent on the Request-URI.

Put ( string url ) : UnityAgentRequest

The PUT method requests that the enclosed entity be stored under the supplied Request-URI.

SingleConnect ( string url ) : UnityAgentRequest

This specification reserves the method name CONNECT for use with a proxy that can dynamically switch to being a tunnel (e.g. SSL tunneling [44]). This is the static version of the method that will not retain state between different actions.

SingleDelete ( string url ) : UnityAgentRequest

The DELETE method requests that the origin server delete the resource identified by the Request-URI. This is the static version of the method that will not retain state between different actions.

SingleGet ( string url ) : UnityAgentRequest

The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI. This is the static version of the method that will not retain state between different actions.

SingleHead ( string url ) : UnityAgentRequest

The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. This is the static version of the method that will not retain state between different actions.

SingleOptions ( string url ) : UnityAgentRequest

The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI. This is the static version of the method that will not retain state between different actions.

SinglePatch ( string url ) : UnityAgentRequest

The PATCH method is used to apply partial modifications to a resource.

SinglePost ( string url ) : UnityAgentRequest

The actual function performed by the POST method is determined by the server and is usually dependent on the Request-URI. This is the static version of the method that will not retain state between different actions.

SinglePut ( string url ) : UnityAgentRequest

The PUT method requests that the enclosed entity be stored under the supplied Request-URI. This is the static version of the method that will not retain state between different actions.

SingleTrace ( string url ) : UnityAgentRequest

The TRACE method is used to invoke a remote, application-layer loop-back of the request message. The final recipient of the request SHOULD reflect the message received back to the client as the entity-body of a 200 (OK) response. This is the static version of the method that will not retain state between different actions.

Trace ( string url ) : UnityAgentRequest

The TRACE method is used to invoke a remote, application-layer loop-back of the request message. The final recipient of the request SHOULD reflect the message received back to the client as the entity-body of a 200 (OK) response.

Protected Methods

Method Description
CreateRequest ( string verb, string url ) : UnityAgentRequest

Method Details

Connect() public method

This specification reserves the method name CONNECT for use with a proxy that can dynamically switch to being a tunnel (e.g. SSL tunneling [44]).
public Connect ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

CreateRequest() protected method

protected CreateRequest ( string verb, string url ) : UnityAgentRequest
verb string
url string
return UnityAgentRequest

Delete() public method

The DELETE method requests that the origin server delete the resource identified by the Request-URI.
public Delete ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

Get() public method

The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI.
public Get ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

Head() public method

The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response.
public Head ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

Options() public method

The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI.
public Options ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

Patch() public method

The PATCH method is used to apply partial modifications to a resource.
public Patch ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

Post() public method

The actual function performed by the POST method is determined by the server and is usually dependent on the Request-URI.
public Post ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

Put() public method

The PUT method requests that the enclosed entity be stored under the supplied Request-URI.
public Put ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

SingleConnect() public static method

This specification reserves the method name CONNECT for use with a proxy that can dynamically switch to being a tunnel (e.g. SSL tunneling [44]). This is the static version of the method that will not retain state between different actions.
public static SingleConnect ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

SingleDelete() public static method

The DELETE method requests that the origin server delete the resource identified by the Request-URI. This is the static version of the method that will not retain state between different actions.
public static SingleDelete ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

SingleGet() public static method

The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI. This is the static version of the method that will not retain state between different actions.
public static SingleGet ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

SingleHead() public static method

The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. This is the static version of the method that will not retain state between different actions.
public static SingleHead ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

SingleOptions() public static method

The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI. This is the static version of the method that will not retain state between different actions.
public static SingleOptions ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

SinglePatch() public static method

The PATCH method is used to apply partial modifications to a resource.
public static SinglePatch ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

SinglePost() public static method

The actual function performed by the POST method is determined by the server and is usually dependent on the Request-URI. This is the static version of the method that will not retain state between different actions.
public static SinglePost ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

SinglePut() public static method

The PUT method requests that the enclosed entity be stored under the supplied Request-URI. This is the static version of the method that will not retain state between different actions.
public static SinglePut ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

SingleTrace() public static method

The TRACE method is used to invoke a remote, application-layer loop-back of the request message. The final recipient of the request SHOULD reflect the message received back to the client as the entity-body of a 200 (OK) response. This is the static version of the method that will not retain state between different actions.
public static SingleTrace ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest

Trace() public method

The TRACE method is used to invoke a remote, application-layer loop-back of the request message. The final recipient of the request SHOULD reflect the message received back to the client as the entity-body of a 200 (OK) response.
public Trace ( string url ) : UnityAgentRequest
url string The request URL.
return UnityAgentRequest