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.