HttpPlugin Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.