C# Class ClearCanvas.Common.Rest.RestClient

Utility class for interacting with HTTP REST style web services.
ファイルを表示 Open project: jasper-yeh/ClearCanvas Class Usage Examples

Public Methods

Method Description
CreateRequest ( string resource ) : System.Net.Request

Creates a request for the specified resource.

CreateRequest ( string resource, object>.Dictionary args ) : System.Net.Request

Creates a request for the specified resource, with the specified query string arguments.

CreateRequest ( string resource, string args ) : System.Net.Request

Creates a request for the specified resource, with the specified query string arguments.

Get ( string resource, object>.Dictionary args ) : System.Net.Response

Convenience method for issuing an HTTP GET request.

Get ( string resource, string args ) : System.Net.Response

Convenience method for issuing an HTTP GET request.

RestClient ( string baseUrl ) : System

Constructs a REST client for the specified base URL.

Private Methods

Method Description
QueryString ( object>.Dictionary args ) : string

Method Details

CreateRequest() public method

Creates a request for the specified resource.
public CreateRequest ( string resource ) : System.Net.Request
resource string
return System.Net.Request

CreateRequest() public method

Creates a request for the specified resource, with the specified query string arguments.
public CreateRequest ( string resource, object>.Dictionary args ) : System.Net.Request
resource string
args object>.Dictionary
return System.Net.Request

CreateRequest() public method

Creates a request for the specified resource, with the specified query string arguments.
public CreateRequest ( string resource, string args ) : System.Net.Request
resource string
args string
return System.Net.Request

Get() public method

Convenience method for issuing an HTTP GET request.
public Get ( string resource, object>.Dictionary args ) : System.Net.Response
resource string
args object>.Dictionary
return System.Net.Response

Get() public method

Convenience method for issuing an HTTP GET request.
public Get ( string resource, string args ) : System.Net.Response
resource string
args string
return System.Net.Response

RestClient() public method

Constructs a REST client for the specified base URL.
public RestClient ( string baseUrl ) : System
baseUrl string
return System