docs/changes/1.2.0.rst
.. falcon-release: 2017-05-02
(None)
default kwarg was added to :meth:~falcon.Request.get_header.~falcon.Response.delete_header method was added to
:class:falcon.Response.falcon.HTTPFailedDependency.ujson is installed it will be used in lieu of json to speed up
error serialization and query string parsing under CPython. PyPy users
should continue to use json.independent_middleware kwarg was added to :class:falcon.API to
enable the execution of process_response() middleware methods, even
when process_request() raises an error.falcon.ResponseOptions class was added, along with a
secure_cookies_by_default option to control the default value of
the "secure" attribute when setting cookies. This can make testing
easier by providing a way to toggle whether or not HTTPS is required.port, netloc and scheme properties were added to the
:class:falcon.Request class. The protocol property is now
deprecated and will be removed in a future release.strip_url_path_trailing_slash was added
to :class:falcon.RequestOptions to control whether or not to retain
the trailing slash in the URL path, if one is present. When this
option is enabled (the default), the URL path is normalized by
stripping the trailing slash character. This lets the application
define a single route to a resource for a path that may or may not end
in a forward slash. However, this behavior can be problematic in
certain cases, such as when working with authentication schemes that
employ URL-based signatures. Therefore, the
strip_url_path_trailing_slash option was introduced to make this
behavior configurable.falcon.HTTPError, particularly
around customizing error serialization.wsgi.file_wrapper object,
Falcon wraps :attr:Response.stream in a simple iterator
object that does not implement close(). The iterator should be
modified to implement a close() method that calls the underlying
stream's close() to free system resources.str, setting the status on the response to a
unicode string under Python 2.6 or 2.7 can cause WSGI servers to
raise an error. Therefore, the status string must first be converted
if it is of the wrong type.