Table of Contents

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

TypeNameDescription
HttpClienthttpClient

The HTTP client.

Properties

BaseAddress

Gets the base address.

public Uri BaseAddress { get; }

Property Value

TypeDescription
Uri

The base address.

HttpClient

Gets or sets the HTTP client.

public HttpClient HttpClient { get; }

Property Value

TypeDescription
HttpClient

The HTTP client.

Methods

ReplaceHttpClient(HttpClient)

Replaces the HTTP client.

public void ReplaceHttpClient(HttpClient httpClient)

Parameters

TypeNameDescription
HttpClienthttpClient

The HTTP client.

Operators

Implicit(HttpClientProxy to HttpClient)

Performs an implicit conversion from HttpClientProxy to HttpClient.

public static implicit operator HttpClient(HttpClientProxy httpClientProxy)

Parameters

TypeNameDescription
HttpClientProxyhttpClientProxy

The HTTP client proxy.

Returns

TypeDescription
HttpClient

The result of the conversion.