C# Class ClearCanvas.Common.Rest.RestClient.Request

Represents an HTTP request for a specified resource.
Exibir arquivo Open project: jasper-yeh/ClearCanvas

Public Methods

Method Description
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.

Private Methods

Method Description
GetResponse ( HttpWebRequest request ) : System.Net.Response
Initialize ( string resource, string args ) : void
Request ( RestClient rc, string resource, string args ) : System
WriteRequestBody ( ) : void

Method Details

Delete() public method

Sends this request using the DELETE verb and returns the response.
public Delete ( ) : System.Net.Response
return System.Net.Response

Do() public method

public Do ( string verb ) : System.Net.Response
verb string
return System.Net.Response

Get() public method

Sends this request using the GET verb and returns the response.
public Get ( ) : System.Net.Response
return System.Net.Response

Post() public method

Sends this request using the POST verb and returns the response.
public Post ( ) : System.Net.Response
return System.Net.Response

Put() public method

Sends this request using the PUT verb and returns the response.
public Put ( ) : System.Net.Response
return System.Net.Response

SetData() public method

Sets the request body for this request, and returns itself.
public SetData ( Stream data, bool buffer = true ) : System.Net.Request
data Stream
buffer bool
return System.Net.Request

SetData() public method

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.
return System.Net.Request

SetData() public method

Sets the request body for this request, and returns itself.
public SetData ( string data, bool buffer = true ) : System.Net.Request
data string
buffer bool
return System.Net.Request

SetData() public method

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.
return System.Net.Request