Skip to content

Releases: giraffe-fsharp/Giraffe

0.1.0-alpha018

17 May 06:55
Compare
Choose a tag to compare
0.1.0-alpha018 Pre-release
Pre-release
  • Added two new HttpContext extension methods:
    • TryGetRequestHeader (key : string) which returns an Option<string>
    • GetRequestHeader (key : string) which returns a Result<string, string>
  • Added default computation expressions for the Option<'T> and Result<'T, 'TError> types under Giraffe.ComputationExpressions

0.1.0-alpha017

14 May 09:01
Compare
Choose a tag to compare
0.1.0-alpha017 Pre-release
Pre-release

New features

  • Added plain/text as a new supported mime type to the default negotiate 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>() and ctx.GetLogger<'T>()

Breaking changes

  • Completely removed the HttpHandlerContext type and replaced all usage with the original HttpContext object from ASP.NET Core.
  • Extended the ErrorHandler function with a parameter to retrieve a default ILogger object
  • Moved model binding functions from the Giraffe.ModelBinding module into the Giraffe.HttpContextExtensions module and made them extension methods of the HttpContext object

Also updated the giraffe-template NuGet package with the latest changes.

0.1.0-alpha016

04 May 10:06
Compare
Choose a tag to compare
0.1.0-alpha016 Pre-release
Pre-release

Fixes #46

0.1.0-alpha015

26 Apr 11:25
Compare
Choose a tag to compare
0.1.0-alpha015 Pre-release
Pre-release

Changed the signature of the redirectTo http handler (swapped permanent with location).

0.1.0-alpha014

26 Apr 00:48
Compare
Choose a tag to compare
0.1.0-alpha014 Pre-release
Pre-release

Added redirectTo http handler.

v0.1.0-alpha013

16 Apr 19:44
Compare
Choose a tag to compare
v0.1.0-alpha013 Pre-release
Pre-release

Using culture invariant converters in model binders.

0.1.0-alpha012

15 Apr 22:51
Compare
Choose a tag to compare
0.1.0-alpha012 Pre-release
Pre-release
  • Added bindQueryString which can automatically bind a model from query string parameters
  • Extended bindModel to include bindQueryString when the HTTP method is not POST or PUT

0.1.0-alpha011

15 Apr 12:31
Compare
Choose a tag to compare
0.1.0-alpha011 Pre-release
Pre-release

New features

  • Added a warbler function
  • Added model binding capabilities which can automatically bind a HTTP payload to a strongly typed model: bindJson, bindXml, bindForm and bindModel

Improvements

  • Improved the negotiateWith and negotiate http handlers by making use of ASP.NET Core's MediaTypeHeaderValue class
  • Added *.cshtml files to the DotNet watcher in the template

Bug fixes

  • Fixed AssemblyName and PackageId values in the template

0.1.0-alpha010

13 Apr 10:08
Compare
Choose a tag to compare
0.1.0-alpha010 Pre-release
Pre-release

Added two new HttpHandler functions:

  • negotiate checks the Accept header of a request and determines automatically if a response should be sent in JSON or XML
  • negotiateWith is the same as negotiate, but additionally accepts an IDictionary<string, obj -> HttpHandler> which allows users to extend the default negotiation rules (e.g. change default serialization if a client is indifferent, or add more supported mime types, etc.)

0.1.0-alpha009

11 Apr 22:31
Compare
Choose a tag to compare
0.1.0-alpha009 Pre-release
Pre-release
  • Added a new programmatic view engine called Giraffe.HtmlEngine
  • Addd a new HttpHandler named renderHtml to return views from the new view engine