0.1.0-alpha010
Pre-release
Pre-release
dustinmoris
released this
13 Apr 10:08
·
1222 commits
to master
since this release
Added two new HttpHandler
functions:
negotiate
checks theAccept
header of a request and determines automatically if a response should be sent in JSON or XMLnegotiateWith
is the same asnegotiate
, but additionally accepts anIDictionary<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.)