Class HttpServerConfiguration
Provides execution parameters for an HttpServer.
public sealed class HttpServerConfiguration : IDisposable
- Inheritance
-
HttpServerConfiguration
- Implements
- Inherited Members
Constructors
- HttpServerConfiguration()
Creates an new HttpServerConfiguration instance with no parameters.
Properties
- 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<T> object responses into an blocking IEnumerable<T>.
- DefaultCultureInfo
Gets or sets the default CultureInfo object which the HTTP server will apply to the request handlers and callbacks thread.
- DisposeDisposableContextValues
Gets or sets whether the HTTP server should dispose all IDisposable values in the HttpContext bag when an HTTP session is closed.
- 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 localhost.
- 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
- Dispose()
Frees the resources and invalidates this instance.