Class HttpClientProxy
A wrapper for a HTTP Client
Inheritance
System.Object
HttpClientProxy
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 class HttpClientProxy
Constructors
HttpClientProxy(HttpClient)
Initializes a new instance of the HttpClientProxy class.
Declaration
public HttpClientProxy(HttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpClient | httpClient | The HTTP client. |
Properties
BaseAddress
Gets the base address.
Declaration
public Uri BaseAddress { get; }
Property Value
Type | Description |
---|---|
System.Uri | The base address. |
HttpClient
Gets or sets the HTTP client.
Declaration
public HttpClient HttpClient { get; }
Property Value
Type | Description |
---|---|
System.Net.Http.HttpClient | The HTTP client. |
Methods
ReplaceHttpClient(HttpClient)
Replaces the HTTP client.
Declaration
public void ReplaceHttpClient(HttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpClient | httpClient | The HTTP client. |
Operators
Implicit(HttpClientProxy to HttpClient)
Performs an implicit conversion from HttpClientProxy to HttpClient.
Declaration
public static implicit operator HttpClient(HttpClientProxy httpClientProxy)
Parameters
Type | Name | Description |
---|---|---|
HttpClientProxy | httpClientProxy | The HTTP client proxy. |
Returns
Type | Description |
---|---|
System.Net.Http.HttpClient | The result of the conversion. |