Share via


HttpConnection Constructors

Definition

Overloads

HttpConnection(Uri)

Initializes a new instance of the HttpConnection class.

HttpConnection(HttpConnectionOptions, ILoggerFactory)

Initializes a new instance of the HttpConnection class.

HttpConnection(Uri, HttpTransportType)

Initializes a new instance of the HttpConnection class.

HttpConnection(Uri, HttpTransportType, ILoggerFactory)

Initializes a new instance of the HttpConnection class.

HttpConnection(Uri)

Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs

Initializes a new instance of the HttpConnection class.

public:
 HttpConnection(Uri ^ url);
public HttpConnection (Uri url);
new Microsoft.AspNetCore.Http.Connections.Client.HttpConnection : Uri -> Microsoft.AspNetCore.Http.Connections.Client.HttpConnection
Public Sub New (url As Uri)

Parameters

url
Uri

The URL to connect to.

Applies to

HttpConnection(HttpConnectionOptions, ILoggerFactory)

Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs

Initializes a new instance of the HttpConnection class.

public:
 HttpConnection(Microsoft::AspNetCore::Http::Connections::Client::HttpConnectionOptions ^ httpConnectionOptions, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HttpConnection (Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions httpConnectionOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
public HttpConnection (Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions httpConnectionOptions, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory);
new Microsoft.AspNetCore.Http.Connections.Client.HttpConnection : Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Http.Connections.Client.HttpConnection
Public Sub New (httpConnectionOptions As HttpConnectionOptions, loggerFactory As ILoggerFactory)

Parameters

httpConnectionOptions
HttpConnectionOptions

The connection options to use.

loggerFactory
ILoggerFactory

The logger factory.

Applies to

HttpConnection(Uri, HttpTransportType)

Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs

Initializes a new instance of the HttpConnection class.

public:
 HttpConnection(Uri ^ url, Microsoft::AspNetCore::Http::Connections::HttpTransportType transports);
public HttpConnection (Uri url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports);
new Microsoft.AspNetCore.Http.Connections.Client.HttpConnection : Uri * Microsoft.AspNetCore.Http.Connections.HttpTransportType -> Microsoft.AspNetCore.Http.Connections.Client.HttpConnection
Public Sub New (url As Uri, transports As HttpTransportType)

Parameters

url
Uri

The URL to connect to.

transports
HttpTransportType

A bitmask combining one or more HttpTransportType values that specify what transports the client should use.

Applies to

HttpConnection(Uri, HttpTransportType, ILoggerFactory)

Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs
Source:
HttpConnection.cs

Initializes a new instance of the HttpConnection class.

public:
 HttpConnection(Uri ^ url, Microsoft::AspNetCore::Http::Connections::HttpTransportType transports, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HttpConnection (Uri url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
public HttpConnection (Uri url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory);
new Microsoft.AspNetCore.Http.Connections.Client.HttpConnection : Uri * Microsoft.AspNetCore.Http.Connections.HttpTransportType * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Http.Connections.Client.HttpConnection
Public Sub New (url As Uri, transports As HttpTransportType, loggerFactory As ILoggerFactory)

Parameters

url
Uri

The URL to connect to.

transports
HttpTransportType

A bitmask combining one or more HttpTransportType values that specify what transports the client should use.

loggerFactory
ILoggerFactory

The logger factory.

Applies to