Class
HttpServerConfiguration
Provides execution parameters for an HttpServer.
public sealed class HttpServerConfiguration : IDisposableInheritance #
object ← HttpServerConfiguration
Implements #
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| HttpServerConfiguration() | Creates an new HttpServerConfiguration instance with no parameters. |
Fields #
| Name | Description |
|---|---|
| DefaultAccessLogFormat | Represents the default access logging format for incoming HTTP requests. |
Properties #
| Name | Description |
|---|---|
| AccessLogsFormat | Gets or sets the access logging format for incoming HTTP requests. |
| AccessLogsStream | Gets or sets the LogStream object which the HTTP server will write HTTP server access messages to. |
| AsyncRequestProcessing | Gets or sets whether the HTTP server should handle requests asynchronously or if it should limit the request processing to one request per time. |
| ConvertIAsyncEnumerableIntoEnumerable | Gets or sets whether the HTTP server should convert IAsyncEnumerable object responses into an blocking IEnumerable. |
| DisposeDisposableContextValues | Gets or sets whether the HTTP server should dispose all IDisposable values in the HttpContext bag when an HTTP session is closed. |
| EnableAutomaticResponseCompression | Gets or sets whether the HTTP server should automatically compress response content bodies using request-allowed encoding algorithms when possible. |
| Engine | Gets or sets the HTTP server processing engine. |
| ErrorsLogsStream | Gets or sets the LogStream object which the HTTP server will write HTTP server error transcriptions to. |
| ForceTrailingSlash | Gets or sets whether the HTTP server should automatically rewrite GET requests to end their path with /. This is applyable only to non-Regex routes. |
| ForwardingResolver | Gets or sets an object that is responsible for resolving the client address, host and protocol of a proxy, load balancer or CDN, through the HTTP request. |
| IdleConnectionTimeout | Gets or sets the maximum time allowed for an idle connection. |
| IncludeRequestIdHeader | Gets or sets whether the server should include the “X-Request-Id” header in response headers. |
| KeepAlive | Gets or sets whether the client should mantain an persistent connection with the HTTP server. |
| ListeningHosts | Gets or sets the listening hosts repository that the HttpServer instance will listen to. |
| MaximumContentLength | Gets or sets the maximum size of a request body before it is closed by the socket. |
| NormalizeHeadersEncodings | Gets or sets whether the HTTP server should convert request headers encoding to the content encoding. |
| OptionsLogMode | Gets or sets the log mode that the HTTP server should use to log OPTIONS requests. |
| RemoteRequestsAction | Gets or sets the server’s action when it receives an HTTP request outside the local host. |
| SendSiskHeader | Gets or sets whether the HTTP server should send the X-Powered-By header in all responses. |
| ThrowExceptions | Gets or sets whether the server should throw exceptions instead of reporting it on HttpServerExecutionStatus if any is thrown while processing requests. |
Methods #
| Name | Description |
|---|---|
| Dispose() | Frees the resources and invalidates this instance. |