Releases: sisk-http/core
Releases · sisk-http/core
v1.2
v1.2
This changelog includes changes from v1.0.2 to v1.2.0.
What's Changed
- Added the
StringValue.Create(string)method. - Added the
HttpResponse(HttpStatusInformation)constructor. - Added
IEquatable<Route>toRouteclass. - Added
IEquatable<MultipartObject>toMultipartObjectclass. - Added
notnullfor constraint<T>of theValueResult<T>class. - Added the
DefaultPageCSSstatic property toDefaultMessagePageclass. - Added the
CreateBuilder(string)static method toHttpServerclass. - Added experimental support for listening ports paths instead only listening at the root index.
- Added the
ListeningPort.Pathproperty, plus their constructors. - Added the
HttpRequest.RouteParametersproperty. In next Sisk versions, all path/route parameters will be moved to this property insteadHttpRequest.Query. For now, theQueryproperty will have the same behavior as before. - Added boolean operators for
HttpStatusInformationstruct. - Added the
StringKeyStoreclass. - Added the
CookieHelper.BuildCookieHeaderValuestatic method. - Added the
ConfigurationFileLookupDirectoryenum toPortableConfigurationBuilder.WithConfigFilemethod. - Added the
HttpContext.ExtraHeadersproperty. - Added the extension method
HttpResponse.WithCookie(Cookie)method. - Added the
HttpServerExecutionResult.Contextproperty. - Improved the
ListeningPort.Parsemethod. - Improved various
CookieHelpersmethods syntax signatures. - The
HttpContext.Routerproperty ins't nullable anymore. - The
HttpServerConfiguration.AccessLogsStreamproperty nows defaults toLogStream.ConsoleOutput. - The
HttpRequestExceptionis now sealed. - The
HttpResponse.Headersproperty ins't read-only anymore. - The
HttpServerFlags.EnableNewMultipartFormReaderis now enabled by default. If you encounter problems with the Multipart form parser, you can disable it and use the old parser. - The
Router.GlobalRequestHandlersins't nullable anymore. And it is anList<IRequestHandler>insteadIRequestHandler[]now. - The
Router.NotFoundErrorHandlerandRouter.MethodNotAllowedErrorHandlernow, by default, returns an HTML response fromDefaultMessagePageif the requests acceptstext/html. You can disable this behavior by overriding the mentioned properties. - The
ServerConfiguration.MaximumContentLengthproperty is nowInt64insteadInt32. - Route matching and conflict catching algorithms improved.
- Removed string-based route-path algorithms.
- Fixed an issue regarding how the
CertificateUtilclass generates hashcodes for DNS names. - Fixed various documentation members typos.
- Fixed an issue where the
ExpiresandLast-Modifiedheaders fromHttpContentHeadersobjects weren't being sent as universal time, but local time. - Fixed more issues related ot the
HttpContentHeaders. - Fixed an issue where the
HttpServerweren't releasing theWaitNext()method on dispose. - Fixed an issue related to
HttpWebSocketconnections not being correctly closed. - Fixed
Sisk.SslProxyHTTP serializer and deserializer issues. - Fixed logic error on
StringValueCollectoin.TryGetValue. - Fixed multiple issues related to the
IniConfigurationReaderINI-configuration reader. - Fixed numeric errors on
SizeHelperconstants.
Breaking and deprecating changes:
- [Breaking] Dropped support for .NET 6 and 7. These versions will be maintained until November 30, 2024, in the
legacy1.0.x branch for severe bugs and critical security issues. - [Breaking] Removed the
HttpServerHostContextBuilder.UseAutoScan(bool)method. Theboolparameter was removed. - [Breaking] Removed the
HtmlContent.DefaultEncodingstatic property. It now evaluates toEncoding.Default. - [Breaking] Removed the
HttpRequest.SetContextBag*andHttpRequest.GetContextBag*methods. You should use theHttpRequest.Bagproperty instead. - [Breaking] Removed the
HttpRequest.Close*method. You should use theHttpResponse.Refuse()method instead. - [Breaking] Removed the
HttpResponse.CreateEmptyResponsemethod. You should use the emptyHttpResponseconstructor instead. - [Breaking] Removed the
HttpResponse.CreateRedirectResponsemethod. - [Breaking] Removed the
HttpResponse.StatusInformatoinproperty. You should use theHttpResponse.Statusproperty instead. - [Breaking] The
AutoScanModulesmethods (onRouterandHttpServerHostContextBuilder) now automatically set static classes as static members and searches for instance and static methods in instance classes if an public constructor is found. - [Breaking] The
RouterModule.HasRequestHandler(IRequestHandler)method is nowprotected. Before waspublic. - [Breaking] Renamed the
Sisk.IniConfiguration.IniConfigurationPipelineclass name toIniConfigurationReader. - [Depreated] the
HttpRequest.GetQueryValueandHttpRequest.GetQueryValue<T>(string)methods are now deprecated. You should use theHttpRequest.Queryproperty instead.
v1.1.1
What's Changed
- Fix logic in StringValueCollection.TryGetValue by @khalidabuhakmeh in #11
New Contributors
- @khalidabuhakmeh made their first contribution in #11
Full Changelog: 1.0.2.0...1.1.1.0
v1.0.2
- Added the
HttpServerHostContextBuilder.UseStartupMessagemethod. - Added the
HttpServer.CreateListener()method. - Added the
WaitTimeoutproperty toHttpWebSocket. - Added the
HttpWebSocket.WaitNext(TimeSpan)overload method. - Made
StringValueandStringValueCollectioncontructors public. - Now
IRequestHandlercan be applied on classes declarations. - Breaking: renamed the
PortableConfigurationBuilder.WithConfigurationPipelinemethod toWithConfigReader. - Improved the server exception message for
ServerConfiguration.ErrorsLogsStreamerrors. - The
HttpWebSocket.WithPingis not really fluent and returns the selfHttpWebSocketinstance as parameter. - Deprecate
HttpRequest.Closemethod. You should use the newHttpResponse.Refuse()method instead. - Deprecate
HttpResponse.CreateEmptyResponse()method. - Fixed an issue where exceptions raised on HttpRequestHandler methods
ServerStarting,ServerStartedandSetupRouterwould be ignored. Eexceptions within these handlers are now thrown. - Fixed an deadlock in
HttpServerHostContext.Dispose()method. #10
v1.0
v0.16.2
v0.16.1
v0.16
v0.16-rc-3
- fixed an issue
HttpRequest.GetQueryValuewould throw other exceptions besidesInvalidCastException. - fixed an issue that read streams wasn't positioned at zero before sending again.
- fixed an issue regarding
Router.AutoScan<>
v0.15.3
This update includes an critical bugfix for v.0.15.3 and v.0.16-rc-3:
- when using
ResolveForwardedOriginAddress, the forwarded IP was not the proxy IP.
v0.16-rc-1
This is an new major update for the Sisk Framework. Please, read [the changelogs] for the Sisk 0.16 updates.