Repository navigation
v1.7.1
Sisk 1.7.1 adds .NET 11 support to Sisk.HttpServer, introduces typed asynchronous route actions, and expands the API documentation and monitoring extensions.
HTTP server and Cadente
-
Added
ZstandardContentfor response compression on .NET 11. The existing target frameworks remain available. -
Added
RouteTask<T>for asynchronous route actions that return values without wrapping them inValueResult<T>. For example, with a value handler registered forint:router.MapGet("/count", async RouteTask<int> () => { await Task.Yield(); return 42; });
-
Added
HttpRequest.RequestTimestamp, measured inStopwatchticks when the server received the request, andLogStream.BufferingTargetfor decorators that delegate buffering to another stream. -
Breaking: Route metadata keys are now case-insensitive. If a route used keys that differ only by case, rename the keys so they remain distinct.
-
Fixed file serving so
HEADrequests send no media body (#61), and fixedOverrideHeadersso it replaces CORS and server headers (#62). -
Fixed trailing-slash redirects so the
Locationstays on the current host, rejected control characters in response status descriptions, and preserved the original handler exception when it was handled byCallbackErrorHandler. -
Request-body reads are now rejected once a response stream has started. Read the request body before opening the response stream.
-
Fixed
Sisk.Cadente.CoreEngineso deferred route actions run after the response is sent, rather than delaying the response.
API documentation
- Added
ApiEndpointFlagsfor marking endpoints asBeta,Experimental,Preview,Deprecated, orInternal. The HTML exporter displays these flags as badges. - Added
JsonContentTypeHandler(JsonOptions)and included XML documentation summaries in generated JSON schemas by default. - Fixed OpenAPI type mappings, JSON example escaping, and endpoint discovery when request handlers overload
ExecuteorExecuteAsync. LlmsApiExporternow distinguishes endpoints by HTTP method and path. Without an explicitHostname, it emits relative links instead of deriving the hostname from request headers. SetHostnameto keep absolute links.
Monitoring
- Added an errors page that groups incidents into issues and lets operators inspect, copy, and resolve them. Applications can also report exceptions with
MonitoringErrorConsole.TryInformException. - Added configurable meter periods, named series, aggregation modes, and axis formatting. By default, meters now offer 1-hour, 1-day, 7-day, and 30-day periods instead of a single 24-hour window.
- Added
ApplicationMonitor.AuthenticationHandlerandRequestHandlersfor customizing dashboard requests. - Improved snapshot persistence and metric windows. Fixed route-key cardinality growth when clients send unknown HTTP methods (#63).
- Breaking:
MonitoringSnapshotandMeterBucketSnapshothave new positional fields. Recompile consumers of these types and update any deconstruction to match the new signatures. CustomIMonitoringStoreimplementations should throw when a snapshot is temporarily unreadable; returningnullmeans there is no snapshot and allows it to be replaced.
Other packages
Sisk.IniConfiguration,Sisk.JsonRpc, andSisk.ModelContextProtocolcentralize their internal messages.Sisk.SslProxyremains discontinued and is not included in this release.