Share via


HttpPlugin Constructors

Definition

Overloads

HttpPlugin()

Initializes a new instance of the HttpPlugin class.

HttpPlugin(HttpClient)

Initializes a new instance of the HttpPlugin class.

HttpPlugin()

Initializes a new instance of the HttpPlugin class.

public HttpPlugin ();
Public Sub New ()

Applies to

HttpPlugin(HttpClient)

Initializes a new instance of the HttpPlugin class.

[Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructor]
public HttpPlugin (System.Net.Http.HttpClient? client = default);
[<Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructor>]
new Microsoft.SemanticKernel.Plugins.Core.HttpPlugin : System.Net.Http.HttpClient -> Microsoft.SemanticKernel.Plugins.Core.HttpPlugin
Public Sub New (Optional client As HttpClient = Nothing)

Parameters

client
HttpClient

The HTTP client to use.

Attributes

Remarks

HttpPlugin assumes ownership of the HttpClient instance and will dispose it when the plugin is disposed.

Applies to