ListenerOptions class
Configuration for an individual Kestrel listener.
public class ListenerOptions
Public Members
name | description |
---|---|
ListenerOptions() | Initializes a new instance of the ListenerOptions class with default values. |
IPAddress { get; set; } | The IP address to bind to. |
Port { get; set; } | The port to listen on. |
Protocols { get; set; } | HTTP protocols supported by the listener. |
UseConnectionLogging { get; set; } | Enable verbose connection logging. |
UseHttps { get; set; } | Whether HTTPS should be used. |
X509Certificate { get; } | Optional TLS certificate. |
See Also
- namespace Kestrun.Hosting.Options