Class HttpConnection
The default IConnection implementation. Uses HttpClient.
Inheritance
HttpConnection
Assembly: OpenSearch.Net.dll
Syntax
public class HttpConnection : IConnection, IDisposable
Constructors
|
Edit this page
View Source
HttpConnection()
Declaration
Properties
|
Edit this page
View Source
InUseHandlers
Declaration
public int InUseHandlers { get; }
Property Value
|
Edit this page
View Source
RemovedHandlers
Declaration
public int RemovedHandlers { get; }
Property Value
Methods
|
Edit this page
View Source
CreateHttpClientHandler(RequestData)
Declaration
protected virtual HttpMessageHandler CreateHttpClientHandler(RequestData requestData)
Parameters
Returns
|
Edit this page
View Source
CreateHttpRequestMessage(RequestData)
Declaration
protected virtual HttpRequestMessage CreateHttpRequestMessage(RequestData requestData)
Parameters
Returns
|
Edit this page
View Source
CreateRequestMessage(RequestData)
Declaration
protected virtual HttpRequestMessage CreateRequestMessage(RequestData requestData)
Parameters
Returns
|
Edit this page
View Source
DisposeManagedResources()
Declaration
protected virtual void DisposeManagedResources()
|
Edit this page
View Source
RequestAsync<TResponse>(RequestData, CancellationToken)
Declaration
public virtual Task<TResponse> RequestAsync<TResponse>(RequestData requestData, CancellationToken cancellationToken) where TResponse : class, IOpenSearchResponse, new()
Parameters
Returns
Type |
Description |
Task<TResponse> |
|
Type Parameters
Name |
Description |
TResponse |
|
|
Edit this page
View Source
Request<TResponse>(RequestData)
Declaration
public virtual TResponse Request<TResponse>(RequestData requestData) where TResponse : class, IOpenSearchResponse, new()
Parameters
Returns
Type |
Description |
TResponse |
|
Type Parameters
Name |
Description |
TResponse |
|
|
Edit this page
View Source
SetApiKeyAuthenticationIfNeeded(HttpRequestMessage, RequestData)
Declaration
protected virtual bool SetApiKeyAuthenticationIfNeeded(HttpRequestMessage requestMessage, RequestData requestData)
Parameters
Returns
|
Edit this page
View Source
SetAuthenticationIfNeeded(HttpRequestMessage, RequestData)
Declaration
protected virtual void SetAuthenticationIfNeeded(HttpRequestMessage requestMessage, RequestData requestData)
Parameters
|
Edit this page
View Source
SetBasicAuthenticationIfNeeded(HttpRequestMessage, RequestData)
Declaration
protected virtual void SetBasicAuthenticationIfNeeded(HttpRequestMessage requestMessage, RequestData requestData)
Parameters
Implements
Extension Methods