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

Represents an HTTP request for a specified resource.
Afficher le fichier Open project: jasper-yeh/ClearCanvas

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Do() public méthode

public Do ( string verb ) : System.Net.Response
verb string
Résultat System.Net.Response

Get() public méthode

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

Post() public méthode

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

Put() public méthode

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

SetData() public méthode

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

SetData() public méthode

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.
Résultat System.Net.Request

SetData() public méthode

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

SetData() public méthode

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.
Résultat System.Net.Request