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.
- DefaultCultureInfo
Gets or sets the default CultureInfo object which the HTTP server will apply to the request handlers and callbacks thread.
- ErrorsLogsStream
Gets or sets the LogStream object which the HTTP server will write HTTP server error transcriptions to.
- Flags
Gets or sets advanced flags and configuration settings for the HTTP server.
- 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.
- 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.
- RemoteRequestsAction
Gets or sets the server's action when it receives an HTTP request outside the localhost.
- 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.