Class
HttpServerOptions
class HttpServerOptions
Module: System.Web.Http
Assembly: System.Web.dll
Source file: HttpServerOptions.rvn
Inheritance: Object → HttpServerOptions
Configures buffered request admission and exchange deadlines.
Remarks
Listen validates and snapshots these values before opening a socket. Later mutation has no effect on an existing server. These limits do not reserve host memory.
Constructors
1 item
HttpServerOptions()
Creates options with 1 MiB bodies, 32 KiB headers, 100 fields and 15-second read/write deadlines.
Properties
6 items
MaxRequestBodySize: int
Maximum decoded request body bytes, from zero through 1,048,576. Defaults to 1,048,576.
MaxRequestHeaderCount: int
Maximum request header fields, including Host, from one through 100. Defaults to 100.
MaxRequestHeadersTotalSize: int
Maximum request-line and header bytes, including delimiters, from one through 32,768. Defaults to 32,768.
RequestReadTimeout: Duration
Total TLS handshake and header/body read budget after accepting a connection. Defaults to 15 seconds.
ResponseWriteTimeout: Duration
Total response write and TLS shutdown budget after encoding. Defaults to 15 seconds.
SslOptions: SslServerAuthenticationOptions?
Optional HTTPS credentials. Snapshot by reference; caller keeps options alive until the server closes.
Methods
4 items
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
ToString() -> string
Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override.
Inherited from Object.ToString