Giraffe v3.1.0 Release Notes
Release Date: 2018-09-28 // over 5 years ago-
๐ New features
โ Added a new http handler called
validatePreconditions
to help with conditional requests:let someHandler (eTag : string) (content : string) = let eTagHeader = Some (EntityTagHeaderValue.FromString true eTag) validatePreconditions eTagHeader None >=> setBodyFromString content
Made previously internal functionality for sub routing available through the
SubRouting
module:SubRouting.getSavedPartialPath
: Returns the currently partially resolved path.SubRouting.getNextPartOfPath
: Returns the yet unresolved part of the path.SubRouting.routeWithPartialPath
: Invokes a route handler as part of a sub route.
๐ Improvements
- ๐ Performance improvements for Giraffe's default response writers.
- ๐ Performance improvements of the
htmlView
handler. - โฌ๏ธ Upgraded to the latest
TaskBuilder.fs
NuGet package which also has the SourceLink integration now.
๐ Bug fixes
- ๐ Fixed the
Successful.NO_CONTENT
http handler, which threw an exception when calling from ASP.NET Core 2.1.