Giraffe v0.1.0-alpha017 Release Notes
-
๐ 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. - 0๏ธโฃ 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. - โ Added