1.0.0
1.0.0
First RTM release of Giraffe.
This release has many minor breaking changes and a few bigger features. Please read the changelog carefully before updating your existing application.
New features
- JSON and XML serialization is now configurable through Dependency Injection (see Serialization)
- Added new features to validate conditional HTTP headers before processing a web request (see Conditional Requests)
- Added streaming capabilities (see Streaming)
- Added
HEAD,OPTIONS,TRACE,CONNECThttp handlers - Added more
HttpContextextension methods to create parity between response writing methods andHttpHandlerfunctions (see Response Writing and Content Negotiation) - Added detailed XML docs to all public facing functions for better Intellisense support
- The
Giraffe.Commonmodule auto opens now
Breaking changes
- Deprecated
Griaffe.Tasks. Giraffe uses the original TaskBuilder.fs library now. - Giraffe comes with a default set of required dependencies which need to be registered via
services.AddGiraffe()during application startup now - The
Giraffe.TokenRouterlibrary has been moved to a separate NuGet package under the same name - Removed redundant serialization methods
- Removed
serializeJson,deserializeJson<'T>,deserializeJsonFromStream<'T>,defaultJsonSerializerSettings,defaultSerializeJson,defaultDeserializeJson<'T>,serializeXmlanddeserializeXml<'T>
- Removed
- Removed the
customJsonhttp handler - Renamed the
htmlhttp handler tohtmlString - Renamed the
renderHtmlhttp handler tohtmlView - Renamed
setBodyAsStringhttp handler tosetBodyFromString - Renamed
ReturnHtmlFileAsync()toWriteHtmlFileAsync()- The function can also accept relative and absolute file paths now
- Renamed
RenderHtmlAsync()toWriteHtmlViewAsync() - Removed the overloads for
BindJsonAsync<'T>,BindModelAsync<'T>andWriteJsonAsyncwhich accepted an object of typeJsonSerializerSettings - Renamed the
signOffhttp handler tosignOutto be more consistent with existing ASP.NET Core naming conventions
To get a summary of the new features and changes you can check the official Giraffe 1.0.0 release blog post.