Class HttpWebRequestConnection
Inheritance
HttpWebRequestConnection
Assembly: OpenSearch.Net.dll
Syntax
[Obsolete("CoreFX HttpWebRequest uses HttpClient under the covers but does not reuse HttpClient instances, do NOT use on .NET core only used as the default on Full Framework")]
public class HttpWebRequestConnection : IConnection, IDisposable
Methods
|
Edit this page
View Source
AlterServicePoint(ServicePoint, RequestData)
Declaration
protected virtual void AlterServicePoint(ServicePoint requestServicePoint, RequestData requestData)
Parameters
|
Edit this page
View Source
CreateHttpWebRequest(RequestData)
Declaration
protected virtual HttpWebRequest CreateHttpWebRequest(RequestData requestData)
Parameters
Returns
|
Edit this page
View Source
CreateWebRequest(RequestData)
Declaration
protected virtual HttpWebRequest CreateWebRequest(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(HttpWebRequest, RequestData)
Declaration
protected virtual bool SetApiKeyAuthenticationIfNeeded(HttpWebRequest request, RequestData requestData)
Parameters
Returns
|
Edit this page
View Source
SetAuthenticationIfNeeded(RequestData, HttpWebRequest)
Declaration
protected virtual void SetAuthenticationIfNeeded(RequestData requestData, HttpWebRequest request)
Parameters
|
Edit this page
View Source
SetBasicAuthenticationIfNeeded(HttpWebRequest, RequestData)
Declaration
protected virtual void SetBasicAuthenticationIfNeeded(HttpWebRequest request, RequestData requestData)
Parameters
|
Edit this page
View Source
SetClientCertificates(HttpWebRequest, RequestData)
Declaration
protected virtual void SetClientCertificates(HttpWebRequest request, RequestData requestData)
Parameters
|
Edit this page
View Source
SetProxyIfNeeded(HttpWebRequest, RequestData)
Declaration
protected virtual void SetProxyIfNeeded(HttpWebRequest request, RequestData requestData)
Parameters
|
Edit this page
View Source
SetServerCertificateValidationCallBackIfNeeded(HttpWebRequest, RequestData)
Declaration
protected virtual void SetServerCertificateValidationCallBackIfNeeded(HttpWebRequest request, RequestData requestData)
Parameters
Implements
Extension Methods