Commit graph

72 commits

Author SHA1 Message Date
David Lord
310fbfcf64
revert copyright year to project start
add copyright header to files
2018-02-08 12:43:30 -08:00
Henry Chladil
0a1090890f 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
5bc0d15359
un-deprecate request.json 2017-06-26 09:34:26 -07:00
David Lord
723e665004
remove deprecated Request.module 2017-06-26 07:46:33 -07:00
David Lord
e97253e4c1
clean up JSON code and docs 2017-06-04 11:44:00 -07:00
Markus Unterwaditzer
5c4fa7e91c Remove already defined method 2016-08-19 21:25:27 +02:00
Adam Byrtek
866118302e Remove _missing sentinel and update docs 2016-08-19 21:22:34 +02:00
Adam Byrtek
5ebdd5dd74 Documentation updates 2016-08-19 21:21:43 +02:00
Adam Byrtek
1df2788a8f Use app_ctx instead of request_ctx to access the app 2016-08-19 21:20:59 +02:00
Adam Byrtek
f0d3b71a94 Updates after code review 2016-08-19 21:19:33 +02:00
Adam Byrtek
f0f458e0c5 Alternative solution for lack of response caching 2016-08-19 21:19:17 +02:00
Adam Byrtek
23de58682c Remove redundant cache flag 2016-08-19 21:19:17 +02:00
Adam Byrtek
c9ef500c5c Mixin for JSON decoding code shared between request/response 2016-08-19 21:19:17 +02:00
Adam Byrtek
ca547f0ec3 JSON response tests and first draft of code that passes 2016-08-19 21:14:12 +02:00
ThiefMaster
c5900a1adf s/1.0/0.11/ in versionadded/versionchanged markers
closes #1817
2016-05-23 14:43:23 +02:00
Miguel Grinberg
de25e98f91 minor rewording of get_json documentation for clarity (#1781) 2016-05-04 06:46:49 -07:00
Markus Unterwaditzer
2446ca63a8 0.11 => 1.0 2015-06-06 03:29:44 +02:00
Keyan Pishdadian
7b080355f5 Remove unused import and clean control flow 2015-03-05 13:26:59 -05:00
Keyan Pishdadian
44da905cb7 Change format index to support Python 2.6 2015-03-05 13:19:00 -05:00
Keyan Pishdadian
1cd9e91810 Changed error message to include actual exception contents 2015-03-05 13:04:38 -05:00
Keyan Pishdadian
290c371eb1 Change to hardcoding exception contents to support Python3 json loading exception format 2015-03-05 12:48:38 -05:00
Keyan Pishdadian
19df249c89 Change logic to support when current_app is not available 2015-03-04 13:21:39 -05:00
Keyan Pishdadian
82b7983b2a Make exception contents conditional on DEBUG 2015-03-02 12:12:37 -05:00
Keyan Pishdadian
5d3e7b737c Add exception details to response 2015-02-28 01:22:15 -05:00
Parkayun
33534bb4a9 Happy New Year 2015 2015-01-02 11:35:00 +09:00
defuz
d4b9b9854c docs: :mimetype:application/json 2014-11-05 07:43:00 +03:00
defuz
ad011bc32d docs: `DEBUG, SERVER_NAME, PATH_INFO` 2014-11-05 07:10:49 +03:00
defuz
8284217593 docs: `True, False and None` 2014-11-05 06:04:58 +03:00
INADA Naoki
61097c47a3 Deprecate request.json property 2014-10-15 02:21:52 +09:00
Armin Ronacher
bafc139810 Added EXPLAIN_TEMPLATE_LOADING to help people debug templates not being loaded. 2014-09-03 17:57:51 +02:00
raimu
fbda3f94ba fix typo 2014-04-11 22:40:21 +02:00
max demian
db12a8f5e4 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
Anton I. Sipos
71b351173b Move JSONHTTPException and JSONBadRequest to new module flask.exceptions. 2012-03-12 14:53:24 -07:00
Jeffrey Finkelstein
9711fd4020 On JSON requests, the JSON response should have Content-Type: application/json and the body of the response should be a JSON object. 2012-03-08 16:41:39 -05:00
Armin Ronacher
ee8417dac8 Late but 2010 -> 2011 in some files 2011-09-01 16:57:00 +02:00