0.1.0-alpha017
Pre-release
Pre-release
dustinmoris
released this
14 May 09:01
·
1174 commits
to master
since this release
New features
- Added
plain/text
as a new supported mime type to the defaultnegotiate
handler (it will be using an object's.ToString()
method to serialize an object into plain text) - Added new helper functions for retrieving a logger or dependencies as extension methods of the
HttpContext
object:ctx.GetService<'T>()
andctx.GetLogger<'T>()
Breaking changes
- Completely removed the
HttpHandlerContext
type and replaced all usage with the originalHttpContext
object from ASP.NET Core. - Extended the
ErrorHandler
function with a parameter to retrieve a defaultILogger
object - Moved model binding functions from the
Giraffe.ModelBinding
module into theGiraffe.HttpContextExtensions
module and made them extension methods of theHttpContext
object
Also updated the giraffe-template
NuGet package with the latest changes.