Class HttpServerFlags
Provides advanced fields for Sisk server behavior.
public sealed class HttpServerFlags
- Inheritance
-
HttpServerFlags
- Inherited Members
Constructors
- HttpServerFlags()
Creates an new HttpServerFlags instance with default flags values.
Fields
- AsyncRequestProcessing
Determines if the HTTP server should handle requests asynchronously or if it should limit the request processing to one request per time.
Default value:
true
- EnableNewMultipartFormReader
Determines if the new span-based multipart form reader should be used. This is an experimental feature and may not be stable for production usage.
Default value:
true
- ForceTrailingSlash
Determines if the HTTP server should automatically rewrite GET requests to end their path with /. This is non-applyable to Regex routes.
Default value:
false
- HeaderNameRequestId
Determines the HTTP header name of the request ID.
Default value:
"X-Request-Id"
- IdleConnectionTimeout
Determines the maximum amount of time an connection can keep alive without sending or receiving any data.
Default value:
TimeSpan.FromSeconds(120)
- NormalizeHeadersEncodings
Determines if the HTTP server should convert request headers encoding to the content encoding.
Default value:
false
- OptionsLogMode
Determines if the HTTP server should write log to OPTIONS requests.
Default value:
LogOutput.Both
- PreventResponseContentsInProhibitedMethods
Determines if the HTTP server should prevent sending body contents in responses when the HTTP request method prohibits it.
Default value:
true
- RequestStreamCopyBufferSize
Specifies the size, in bytes, of the copy buffer of both streams (inbound and outgoing) of the response stream.
Default value:
81920
- SendCorsHeaders
Determines if the HTTP server automatically should send CORS headers if set.
Default value:
true
- SendSiskHeader
Determines if the HTTP server should send the X-Powered-By header in all responses.
Default value:
true
- ThrowContentOnNonSemanticMethods
Determines if the HTTP server should drop requests which has content body in GET, OPTIONS, HEAD and TRACE methods.
Default value:
true
- TreatHeadAsGetMethod
Determines if the HTTP server should automatically send HTTP headers of an pre-processed GET response if the request is using HEAD method.
Default value:
true
- WebSocketBufferSize
Determines the WebSocket buffer initial and max length.
Default value:
1024