0.1.0-beta-300
Pre-release
Pre-release
dustinmoris
released this
18 Nov 07:36
·
948 commits
to master
since this release
New features
- Added
requiresAuthPolicy
http handler - Added
RenderHtml
andReturnHtmlFile
extension methods to theHttpContext
object - Added
customJson
http handler, which allows users to define a custom json handler (with custom serialization settings) - Added overloads to
BindJson
andBindModel
where a user can pass in a customJsonSerializerSettings
object
Breaking changes
- Changed the default json serializer to use camel case for serialization (this change prevents users from being able to change the default serializer through the
JsonConvert.DefaultSettings
object - usecustomJson
instead if customization is required) - Changed the
serializeJson
,deserializeJson
methods to accept an aditional parameter of typeJsonSerializerSettings
Bug fixes and improvements
- Automatically URL decoding of string values when using
routef
- Fixed an inference bug with
routef
by replacing theformat
parameter of thetryMatchInput
method and thepath
parameter of theroutef
androuteCif
methods fromStringFormat
toPrintFormat
- Changed the implementation of
ctx.BindJson<'T>()
for better performance and which aims to fix an Azure bug with Kestrel (#136) - Fixed a bug with
routeBind
(#129) - Improved the
htmlFile
http handler by allowing thefilePath
parameter to be either rooted or relative to theContentRootPath