diff options
| author | Chris McDonough <chrism@plope.com> | 2011-07-09 21:12:06 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-07-09 21:12:06 -0400 |
| commit | 6a0602b3ce4d2a6de9dca25d8e0d390796a79267 (patch) | |
| tree | bd26594b0c0c1a45a6dcfb265478d271e54fac9b /docs/whatsnew-1.1.rst | |
| parent | b44aab103120749bd42e531974f28e67c16a1be0 (diff) | |
| download | pyramid-6a0602b3ce4d2a6de9dca25d8e0d390796a79267.tar.gz pyramid-6a0602b3ce4d2a6de9dca25d8e0d390796a79267.tar.bz2 pyramid-6a0602b3ce4d2a6de9dca25d8e0d390796a79267.zip | |
request.json -> request.json_body; add some docs for json_body
Diffstat (limited to 'docs/whatsnew-1.1.rst')
| -rw-r--r-- | docs/whatsnew-1.1.rst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/whatsnew-1.1.rst b/docs/whatsnew-1.1.rst index a6bb8e99d..a9df38a45 100644 --- a/docs/whatsnew-1.1.rst +++ b/docs/whatsnew-1.1.rst @@ -99,10 +99,9 @@ Minor Feature Additions the Venusian ``Scanner`` object created by Pyramid. (See the :term:`Venusian` documentation for more information about ``Scanner``). -- New request attribute: ``json``. If the request's ``content_type`` is - ``application/json``, this attribute will contain the JSON-decoded - variant of the request body. If the request's ``content_type`` is not - ``application/json``, this attribute will be ``None``. +- New request property: ``json_body``. This property will return the + JSON-decoded variant of the request body. If the request body is not + well-formed JSON, this property will raise an exception. - A new value ``http_cache`` can be used as a :term:`view configuration` parameter. |
