v1.4.2
Full Changelog: 1.4.1...1.4.2
Multipart objects:
- Added the
MultipartFormCollection.GetFile(string)method. - Added the
MultipartFormCollection.Filesproperty. - Added the
MultipartObject.IsFileproperty.
HTTP Requests:
- Added the
HttpRequest.DefaultJsonSerializerOptionsstatic property. - Added the
HttpRequest.GetBodyContentsmethod. - Added the
HttpRequest.GetBodyContentsAsyncmethod. - Several improvements to the
HttpRequest.GetJsonContentoverloads. - Several improvements to the
HttpRequest.GetFormContentAsyncmethod.
Hosting:
- Added the
InitializationParameterCollection.GetStringValue(string)method.
HTML content:
- Added the
HtmlContent(ReadOnlySpan<byte> contents, Encoding encoding)constructor. - Added the
HtmlContent(ReadOnlySpan<byte> contents)constructor.
Logging:
- Added a bunch of async methods, such as
WriteLineAsynctoLogStream. - Added the
PrefixedLogStreamclass. - Breaking: the
LogStream.WriteExceptionis not virtual anymore.
Streaming:
- Added the
GetLinkedCancellationSourcemethod for bothHttpRequestEventSourceandHttpWebSocketclasses.
Bug fixes:
- Fixed an issue where
IAsyncEnumerable<>andIEnumerable<>results were streaming the results outside the router context, which allowed exceptions to not be handled correctly. - Fixed an typo error in the
MultipartObject.HasContentsproperty documentation. - Fixed an issue where the HTTP server was returning an
400 OKand500 Okerrors for unhandled exceptions instead the right description codes.