Class HttpClientProxy
- Namespace
- DocuWare.Services.Http.Client
- Assembly
- DocuWare.RestClient.dll
A wrapper for a HTTP Client
public class HttpClientProxy
- Inheritance
-
HttpClientProxy
- Inherited Members
- Extension Methods
Constructors
HttpClientProxy(HttpClient)
Initializes a new instance of the HttpClientProxy class.
public HttpClientProxy(HttpClient httpClient)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpClient | httpClient | The HTTP client. |
Properties
BaseAddress
Gets the base address.
public Uri BaseAddress { get; }
Property Value
| Type | Description |
|---|---|
| Uri | The base address. |
HttpClient
Gets or sets the HTTP client.
public HttpClient HttpClient { get; }
Property Value
| Type | Description |
|---|---|
| HttpClient | The HTTP client. |
Methods
ReplaceHttpClient(HttpClient)
Replaces the HTTP client.
public void ReplaceHttpClient(HttpClient httpClient)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpClient | httpClient | The HTTP client. |
Operators
Implicit(HttpClientProxy to HttpClient)
Performs an implicit conversion from HttpClientProxy to HttpClient.
public static implicit operator HttpClient(HttpClientProxy httpClientProxy)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpClientProxy | httpClientProxy | The HTTP client proxy. |
Returns
| Type | Description |
|---|---|
| HttpClient | The result of the conversion. |