5.0.0-rc-3
Pre-release
Pre-release
dustinmoris
released this
01 Dec 16:46
·
170 commits
to master
since this release
- Added
ReadBodyBufferedFromRequestAsync
extension method to buffer and read a the request body and make subsequent reads possible (see #449) - Changed how the serialization modules are structured:
IJsonSerializer
is nowJson.ISerializer
Utf8JsonSerializer
is nowUtf8Json.Serializer
NewtonsoftJsonSerializer
is nowNewtonsoftJson.Serializer
SystemTextJsonSerializer
is nowSystemTextJson.Serializer
IXmlSerializer
is nowXml.ISerializer
DefaultXmlSerializer
is nowSystemXml.Serializer
- Converted all
HttpContext
extension methods into C# compatible extension methods, meaning that function arguments had to be merged into tuples - Removed the
=>
operator fromGiraffe.EndpointRouting
- Changed the
GET
,POST
,PUT
,HEAD
, etc. functions to accept anEndpoint list
instead of anEndpoint
- Before:
GET => route "/foo" (text "bar")
, After:GET [ route "/foo" (text "bar") ]
- One can now compose routes easier:
GET [ route "/a" (text "A") route "/b" (text "B") route "/c" (text "C") ]
- Before:
- Added
GET_HEAD
to the endpoint routing functions, which will handle aHEAD
request for the sameGET
handler.