C# Класс ClearCanvas.Common.Rest.RestClient.Request

Represents an HTTP request for a specified resource.
Показать файл Открыть проект

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

Метод Описание
Delete ( ) : System.Net.Response

Sends this request using the DELETE verb and returns the response.

Do ( string verb ) : System.Net.Response
Get ( ) : System.Net.Response

Sends this request using the GET verb and returns the response.

Post ( ) : System.Net.Response

Sends this request using the POST verb and returns the response.

Put ( ) : System.Net.Response

Sends this request using the PUT verb and returns the response.

SetData ( Stream data, bool buffer = true ) : System.Net.Request

Sets the request body for this request, and returns itself.

SetData ( Stream data, string contentType, bool buffer = true ) : System.Net.Request

Sets the request body for this request, and returns itself.

SetData ( string data, bool buffer = true ) : System.Net.Request

Sets the request body for this request, and returns itself.

SetData ( string data, string contentType, bool buffer = true ) : System.Net.Request

Sets the request body for this request, and returns itself.

Приватные методы

Метод Описание
GetResponse ( HttpWebRequest request ) : System.Net.Response
Initialize ( string resource, string args ) : void
Request ( RestClient rc, string resource, string args ) : System
WriteRequestBody ( ) : void

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

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

Sends this request using the DELETE verb and returns the response.
public Delete ( ) : System.Net.Response
Результат System.Net.Response

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

public Do ( string verb ) : System.Net.Response
verb string
Результат System.Net.Response

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

Sends this request using the GET verb and returns the response.
public Get ( ) : System.Net.Response
Результат System.Net.Response

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

Sends this request using the POST verb and returns the response.
public Post ( ) : System.Net.Response
Результат System.Net.Response

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

Sends this request using the PUT verb and returns the response.
public Put ( ) : System.Net.Response
Результат System.Net.Response

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

Sets the request body for this request, and returns itself.
public SetData ( Stream data, bool buffer = true ) : System.Net.Request
data Stream
buffer bool
Результат System.Net.Request

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

Sets the request body for this request, and returns itself.
public SetData ( Stream data, string contentType, bool buffer = true ) : System.Net.Request
data Stream
contentType string
buffer bool Specifies whether the request should buffer the data.
Результат System.Net.Request

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

Sets the request body for this request, and returns itself.
public SetData ( string data, bool buffer = true ) : System.Net.Request
data string
buffer bool
Результат System.Net.Request

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

Sets the request body for this request, and returns itself.
public SetData ( string data, string contentType, bool buffer = true ) : System.Net.Request
data string
contentType string
buffer bool Specifies whether the request should buffer the data.
Результат System.Net.Request