Sisk

Class

HttpServerConfiguration

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

Provides execution parameters for an HttpServer.

C#
public sealed class HttpServerConfiguration : IDisposable

Inheritance #

object ← HttpServerConfiguration

Implements #

IDisposable

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
HttpServerConfiguration()Creates an new HttpServerConfiguration instance with no parameters.

Fields #

NameDescription
DefaultAccessLogFormatRepresents the default access logging format for incoming HTTP requests.

Properties #

NameDescription
AccessLogsFormatGets or sets the access logging format for incoming HTTP requests.
AccessLogsStreamGets or sets the LogStream object which the HTTP server will write HTTP server access messages to.
AsyncRequestProcessingGets or sets whether the HTTP server should handle requests asynchronously or if it should limit the request processing to one request per time.
ConvertIAsyncEnumerableIntoEnumerableGets or sets whether the HTTP server should convert IAsyncEnumerable object responses into an blocking IEnumerable.
DisposeDisposableContextValuesGets or sets whether the HTTP server should dispose all IDisposable values in the HttpContext bag when an HTTP session is closed.
EnableAutomaticResponseCompressionGets or sets whether the HTTP server should automatically compress response content bodies using request-allowed encoding algorithms when possible.
EngineGets or sets the HTTP server processing engine.
ErrorsLogsStreamGets or sets the LogStream object which the HTTP server will write HTTP server error transcriptions to.
ForceTrailingSlashGets or sets whether the HTTP server should automatically rewrite GET requests to end their path with /. This is applyable only to non-Regex routes.
ForwardingResolverGets 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.
IdleConnectionTimeoutGets or sets the maximum time allowed for an idle connection.
IncludeRequestIdHeaderGets or sets whether the server should include the “X-Request-Id” header in response headers.
KeepAliveGets or sets whether the client should mantain an persistent connection with the HTTP server.
ListeningHostsGets or sets the listening hosts repository that the HttpServer instance will listen to.
MaximumContentLengthGets or sets the maximum size of a request body before it is closed by the socket.
NormalizeHeadersEncodingsGets or sets whether the HTTP server should convert request headers encoding to the content encoding.
OptionsLogModeGets or sets the log mode that the HTTP server should use to log OPTIONS requests.
RemoteRequestsActionGets or sets the server’s action when it receives an HTTP request outside the local host.
SendSiskHeaderGets or sets whether the HTTP server should send the X-Powered-By header in all responses.
ThrowExceptionsGets or sets whether the server should throw exceptions instead of reporting it on HttpServerExecutionStatus if any is thrown while processing requests.

Methods #

NameDescription
Dispose()Frees the resources and invalidates this instance.

Type to search the documentation and the API reference.