HttpSysOptions HttpSysOptions HttpSysOptions Class


public class HttpSysOptions
type HttpSysOptions = class
Public Class HttpSysOptions


HttpSysOptions() HttpSysOptions() HttpSysOptions()


AllowSynchronousIO AllowSynchronousIO AllowSynchronousIO

Gets or sets a value that controls whether synchronous IO is allowed for the HttpContext.Request.Body and HttpContext.Response.Body. The default is true.

Authentication Authentication Authentication

Http.Sys authentication settings. These may be modified at any time prior to disposing the listener.

EnableResponseCaching EnableResponseCaching EnableResponseCaching

Attempts kernel mode caching for responses with eligible headers. The response may not include Set-Cookie, Vary, or Pragma headers. It must include a Cache-Control header with Public and either a Shared-Max-Age or Max-Age value, or an Expires header.

Http503Verbosity Http503Verbosity Http503Verbosity

Gets or sets a value that controls how http.sys reacts when rejecting requests due to throttling conditions - like when the request queue limit is reached. The default in http.sys is "Basic" which means http.sys is just resetting the TCP connection. IIS uses Limited as its default behavior which will result in sending back a 503 - Service Unavailable back to the client.

MaxAccepts MaxAccepts MaxAccepts

The maximum number of concurrent accepts.

MaxConnections MaxConnections MaxConnections

Gets or sets the maximum number of concurrent connections to accept, -1 for infinite, or null to use the machine wide setting from the registry. The default value is null.

MaxRequestBodySize MaxRequestBodySize MaxRequestBodySize

Gets or sets the maximum allowed size of any request body in bytes. When set to null, the maximum request body size is unlimited. This limit has no effect on upgraded connections which are always unlimited. This can be overridden per-request via IHttpMaxRequestBodySizeFeature.

RequestQueueLimit RequestQueueLimit RequestQueueLimit

Gets or sets the maximum number of requests that will be queued up in Http.Sys.

ThrowWriteExceptions ThrowWriteExceptions ThrowWriteExceptions

Gets or Sets if response body writes that fail due to client disconnects should throw exceptions or complete normally. The default is false.

Timeouts Timeouts Timeouts

Exposes the Http.Sys timeout configurations. These may also be configured in the registry. These may be modified at any time prior to disposing the listener.

UrlPrefixes UrlPrefixes UrlPrefixes

The url prefixes to register with Http.Sys. These may be modified at any time prior to disposing the listener.

Applies to