docs/changes/1.4.0.rst
.. falcon-release: 2018-01-16
falcon.testing.Result.json now returns None when the response body is
empty, rather than raising an error.~.API.add_static_route, that makes it easy to
serve files from a local directory. This feature provides an alternative to
serving files from the web server when you don't have that option, when
authorization is required, or for testing purposes.Hooks <hooks>).ujson <https://pypi.python.org/pypi/ujson>_, if available, to
speed up JSON (de)serialization under CPython.~falcon.media.validators.jsonschema.validate JSON Schema decorator.~falcon.Request.get_param_as_uuid, to the
:class:~falcon.Request class.RFC 3253 <https://www.ietf.org/rfc/rfc3253.txt>_), such as UPDATE and
REPORT.~falcon.Response.downloadable_as, to the
:class:~falcon.Response class for setting the Content-Disposition header.~falcon.routing.create_http_method_map has been refactored into two
new methods, :meth:~falcon.routing.map_http_methods and :meth:~falcon.routing.set_default_responders, so that
custom routers can better pick and choose the functionality they need. The
original method is still available for backwards-compatibility, but will
be removed in a future release.json param to :meth:~falcon.testing.simulate_request et al.
to automatically serialize the request body from a JSON serializable object
or type (for a complete list of serializable types, see
json.JSONEncoder <https://docs.python.org/3.6/library/json.html#json.JSONEncoder>_).~.TestClient's simulate_*() methods now call
:meth:~.TestClient.simulate_request to make it easier for subclasses to
override :class:~.TestClient's behavior.~.TestClient can now be configured with a default set of headers to
send with every request.FAQ <faq> has been reorganized and greatly expanded.~falcon.media.JSONHandler was raising an error under Python 2.x when
serializing strings containing Unicode code points. This issue has been
fixed.super() did
not work when passing URI template params as positional arguments. This has
now been fixed.'\s' within
Falcon. These strings have been converted to raw strings to mitigate the
warning.Many thanks to all of our talented and stylish contributors for this release!