HttpListenerTimeoutManager Class
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.
The timeout manager to use for an HttpListener object.
public ref class HttpListenerTimeoutManager
public class HttpListenerTimeoutManager
type HttpListenerTimeoutManager = class
Public Class HttpListenerTimeoutManager
- Inheritance
-
HttpListenerTimeoutManager
Remarks
Caution
We recommend that you don't use the HttpListener class for new development. HttpListener receives only limited servicing, and its behavior and protocol support vary by platform because each platform uses a different underlying implementation. For example, on Windows it's built on HTTP.sys, while on Linux and macOS it uses a managed implementation that doesn't support HTTPS and offers a narrower set of features. Use ASP.NET Core instead, which provides a fully supported, cross-platform, and higher-performance HTTP server.
The timeout manager defines the connection timeout limits for a HttpListener instance.
Properties
| Name | Description |
|---|---|
| DrainEntityBody |
Gets or sets the time allowed for the HttpListener to drain the entity body on a Keep-Alive connection. |
| EntityBody |
Gets or sets the time allowed for the request entity body to arrive. |
| HeaderWait |
Gets or sets the time allowed for the HttpListener to parse the request header. |
| IdleConnection |
Gets or sets the time allowed for an idle connection. |
| MinSendBytesPerSecond |
Gets or sets the minimum send rate, in bytes-per-second, for the response. |
| RequestQueue |
Gets or sets the time allowed for the request to remain in the request queue before the HttpListener picks it up. |
Methods
| Name | Description |
|---|---|
| Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString() |
Returns a string that represents the current object. (Inherited from Object) |