Commit graph

75 commits

Author SHA1 Message Date
David Lord
aaab1e46f2 add Response.max_cookie_size config 2018-04-10 11:17:18 -07:00
David Lord
056c62e0b0 detect UTF encodings when loading json 2018-04-10 09:34:59 -07:00
fphonor
df23942df2 get_json separate cache depending on silent arg 2018-04-09 02:52:40 -07:00
David Lord
aa4db37a7f revert copyright year to project start
add copyright header to files
2018-02-08 12:43:30 -08:00
Henry Chladil
f0c52242fd Add additional information in the url_rule docs (#2467)
If a user is making use of the errorhandler(405) decorator, and
they wish to include an Allow header (as per HTTP spec), they may
be confused to find that url_rule is None. This doc change aims to
clarify that because the request was never successfully matched,
it was never bound to a URL rule and to access the valid methods,
they must examine routing_exception.
2017-10-07 19:52:44 +02:00
David Lord
bffe2a0af9 un-deprecate request.json 2017-06-26 09:34:26 -07:00
David Lord
fc2b8aabde remove deprecated Request.module 2017-06-26 07:46:33 -07:00
David Lord
ca0dbc87a9 clean up JSON code and docs 2017-06-04 11:44:00 -07:00
Markus Unterwaditzer
025d3a541d Remove already defined method 2016-08-19 21:25:27 +02:00
Adam Byrtek
1bfefbaa36 Remove _missing sentinel and update docs 2016-08-19 21:22:34 +02:00
Adam Byrtek
f5f46f56e6 Documentation updates 2016-08-19 21:21:43 +02:00
Adam Byrtek
bafc522f43 Use app_ctx instead of request_ctx to access the app 2016-08-19 21:20:59 +02:00
Adam Byrtek
0d833ce4ce Updates after code review 2016-08-19 21:19:33 +02:00
Adam Byrtek
3810a54343 Alternative solution for lack of response caching 2016-08-19 21:19:17 +02:00
Adam Byrtek
6aaecb7d43 Remove redundant cache flag 2016-08-19 21:19:17 +02:00
Adam Byrtek
846db2412f Mixin for JSON decoding code shared between request/response 2016-08-19 21:19:17 +02:00
Adam Byrtek
8ec58b0f29 JSON response tests and first draft of code that passes 2016-08-19 21:14:12 +02:00
ThiefMaster
e9e7e5e0c5 s/1.0/0.11/ in versionadded/versionchanged markers
closes #1817
2016-05-23 14:43:23 +02:00
Miguel Grinberg
22f804ff06 minor rewording of get_json documentation for clarity (#1781) 2016-05-04 06:46:49 -07:00
Markus Unterwaditzer
a19c2397e7 0.11 => 1.0 2015-06-06 03:29:44 +02:00
Keyan Pishdadian
2277af95a9 Remove unused import and clean control flow 2015-03-05 13:26:59 -05:00
Keyan Pishdadian
ac9a7c1740 Change format index to support Python 2.6 2015-03-05 13:19:00 -05:00
Keyan Pishdadian
b032c2851e Changed error message to include actual exception contents 2015-03-05 13:04:38 -05:00
Keyan Pishdadian
efd6333ae0 Change to hardcoding exception contents to support Python3 json loading exception format 2015-03-05 12:48:38 -05:00
Keyan Pishdadian
8fa4b36357 Change logic to support when current_app is not available 2015-03-04 13:21:39 -05:00
Keyan Pishdadian
6f6c63aea5 Make exception contents conditional on DEBUG 2015-03-02 12:12:37 -05:00
Keyan Pishdadian
b57ee34361 Add exception details to response 2015-02-28 01:22:15 -05:00
Parkayun
e05771ff60 Happy New Year 2015 2015-01-02 11:35:00 +09:00
defuz
b9d849475d docs: :mimetype:application/json 2014-11-05 07:43:00 +03:00
defuz
0517016996 docs: `DEBUG, SERVER_NAME, PATH_INFO` 2014-11-05 07:10:49 +03:00
defuz
f7cbe74c35 docs: `True, False and None` 2014-11-05 06:04:58 +03:00
INADA Naoki
558d7813a0 Deprecate request.json property 2014-10-15 02:21:52 +09:00
Armin Ronacher
98620f73ab Added EXPLAIN_TEMPLATE_LOADING to help people debug templates not being loaded. 2014-09-03 17:57:51 +02:00
raimu
5c14576526 fix typo 2014-04-11 22:40:21 +02:00
max demian
809cfbbc4a Update wrappers.py 2014-03-15 14:45:37 +01:00
Armin Ronacher
e5bba9deb5 Added support for custom JSON mimetypes 2014-02-08 17:01:13 +00:00
Daniel Neuhäuser
d517f35d60 Merge branch '0.10-maintenance' 2014-01-02 19:21:55 +01:00
Daniel Neuhäuser
52098e1e4f Happy New Year 2014 2014-01-02 19:21:07 +01:00
Will Bowlin
3e90de2e10 corrected documentation for Request get_json() 2013-08-23 00:22:57 -05:00
Armin Ronacher
964174931d Added request.get_json(). 2013-06-12 16:27:48 +01:00
Armin Ronacher
16df96c552 Merge branch 'master' into sprint-branch 2013-05-23 14:01:33 +01:00
Armin Ronacher
4c27f7a8c4 Removed incorrect JSON exception subclasses 2013-05-23 13:59:10 +01:00
Daniel Neuhäuser
bbdfc83902 Merge pull request #732 from ThomasWaldmann/exceptions_as
automated change using python-modernize: use 'as' in except
2013-05-18 08:24:00 -07:00
Thomas Waldmann
40fad2ece8 document python 2.6 minimum requirement, remove all stuff that refers to 2.5 2013-05-18 17:06:25 +02:00
Thomas Waldmann
6caaa8a527 automated change using python-modernize: use 'as' in except 2013-05-18 16:24:40 +02:00
Armin Ronacher
b146d8277a Added wrapper module around simplejson/json for much simplified customization. 2012-10-07 23:31:48 +02:00
Armin Ronacher
39329bfc07 Merge pull request #591 from finbarrocallaghan/master
fixed some typos
2012-10-07 03:54:58 -07:00
Finbarr O'Callaghan
48f7cdd016 various typo fixes 2012-09-06 18:04:51 +01:00
Armin Ronacher
c3d38a21c6 Removed json_available hack 2012-08-11 03:11:40 +01:00
jfinkels
91efb90fb3 Removed extra blank line to fix ReST formatted documentation string in wrappers.py. Should have gone with pull request #439. 2012-04-01 13:03:22 -03:00