Class Connector
Some helpers to connect to a service.
Inheritance
System.Object
Connector
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DocuWare.Services.Http.Client
Assembly: DocuWare.RestClient.dll
Syntax
public static class Connector
Methods
CreateConnection(String)
Creates the connection with the specified base URI.
Declaration
public static HttpClientProxy CreateConnection(string baseUri)
Parameters
Type | Name | Description |
---|---|---|
System.String | baseUri | The base URI. |
Returns
Type | Description |
---|---|
HttpClientProxy | A HTTP client proxy handling further request to the specified URI. |
CreateConnection(String, HttpMessageHandler)
Creates the connection with the specified base URI.
Declaration
public static HttpClientProxy CreateConnection(string baseUri, HttpMessageHandler clientHandler)
Parameters
Type | Name | Description |
---|---|---|
System.String | baseUri | The base URI. |
System.Net.Http.HttpMessageHandler | clientHandler | The client handler. |
Returns
Type | Description |
---|---|
HttpClientProxy | A HTTP client proxy handling further request to the specified URI. |
CreateConnection(Uri)
Creates the connection with the specified base URI.
Declaration
public static HttpClientProxy CreateConnection(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | The base URI. |
Returns
Type | Description |
---|---|
HttpClientProxy | A HTTP client proxy handling further request to the specified URI. |
CreateConnection(Uri, HttpMessageHandler)
Creates the connection with the specified base URI.
Declaration
public static HttpClientProxy CreateConnection(Uri baseUri, HttpMessageHandler clientHandler)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | The base URI. |
System.Net.Http.HttpMessageHandler | clientHandler | The client handler. |
Returns
Type | Description |
---|---|
HttpClientProxy | A HTTP client proxy handling further request to the specified URI. |
CreateDefaultRequestHandler()
Creates the default request handler.
Declaration
public static HttpClientHandler CreateDefaultRequestHandler()
Returns
Type | Description |
---|---|
System.Net.Http.HttpClientHandler | A web request handler set up to use cookies and GZIP compression. |