C# Class ClearCanvas.Common.Rest.RestClient

Utility class for interacting with HTTP REST style web services.
Afficher le fichier Open project: jasper-yeh/ClearCanvas Class Usage Examples

Méthodes publiques

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

Méthode Description
QueryString ( object>.Dictionary args ) : string

Method Details

CreateRequest() public méthode

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

CreateRequest() public méthode

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

CreateRequest() public méthode

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

Get() public méthode

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

Get() public méthode

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

RestClient() public méthode

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