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.
7 years ago
David Lord
5bc0d15359
un-deprecate request.json
7 years ago
David Lord
723e665004
remove deprecated Request.module
7 years ago
David Lord
e97253e4c1
clean up JSON code and docs
8 years ago
David Lord
217d5f9bc0
mention mimetype and is_json
8 years ago
Grant Wu
daf85d3725
Clarify documentation for json parsing
...
Documentation does not currently mention that is_json accepts mimetypes that are not strictly application/json.
8 years ago
Jiri Kuncar
36425d5f91
Ignore cache on request.get_json(cache=False) call ( #2089 )
...
* Test cache argument of Request.get_json
* Ignore cache on request.get_json(cache=False) call
Removes usage of `_cached_json` property when `get_json` is called with
disabled cache argument. (closes #2087 )
8 years ago
Markus Unterwaditzer
5c4fa7e91c
Remove already defined method
8 years ago
Adam Byrtek
866118302e
Remove _missing sentinel and update docs
8 years ago
Adam Byrtek
5ebdd5dd74
Documentation updates
8 years ago
Adam Byrtek
1df2788a8f
Use app_ctx instead of request_ctx to access the app
8 years ago
Adam Byrtek
f0d3b71a94
Updates after code review
8 years ago
Adam Byrtek
f0f458e0c5
Alternative solution for lack of response caching
8 years ago
Adam Byrtek
23de58682c
Remove redundant `cache` flag
8 years ago
Adam Byrtek
c9ef500c5c
Mixin for JSON decoding code shared between request/response
8 years ago
Adam Byrtek
ca547f0ec3
JSON response tests and first draft of code that passes
8 years ago
ThiefMaster
c5900a1adf
s/1.0/0.11/ in versionadded/versionchanged markers
...
closes #1817
9 years ago
Miguel Grinberg
de25e98f91
minor rewording of get_json documentation for clarity ( #1781 )
9 years ago
Markus Unterwaditzer
2446ca63a8
0.11 => 1.0
10 years ago
Keyan Pishdadian
7b080355f5
Remove unused import and clean control flow
10 years ago
Keyan Pishdadian
44da905cb7
Change format index to support Python 2.6
10 years ago
Keyan Pishdadian
1cd9e91810
Changed error message to include actual exception contents
10 years ago
Keyan Pishdadian
290c371eb1
Change to hardcoding exception contents to support Python3 json loading exception format
10 years ago
Keyan Pishdadian
19df249c89
Change logic to support when current_app is not available
10 years ago
Keyan Pishdadian
82b7983b2a
Make exception contents conditional on DEBUG
10 years ago
Keyan Pishdadian
5d3e7b737c
Add exception details to response
10 years ago
Parkayun
33534bb4a9
Happy New Year 2015
10 years ago
defuz
d4b9b9854c
docs: :mimetype:`application/json`
10 years ago
defuz
ad011bc32d
docs: ``DEBUG``, ``SERVER_NAME``, ``PATH_INFO``
10 years ago
defuz
8284217593
docs: ``True``, ``False`` and ``None``
10 years ago
Augustus D'Souza
709289037a
Corrected api docs
...
http://flask.pocoo.org/docs/0.10/api/#flask.Request.get_json
10 years ago
INADA Naoki
61097c47a3
Deprecate request.json property
10 years ago
Armin Ronacher
bafc139810
Added EXPLAIN_TEMPLATE_LOADING to help people debug templates not being loaded.
10 years ago
raimu
fbda3f94ba
fix typo
11 years ago
max demian
db12a8f5e4
Update wrappers.py
11 years ago
Armin Ronacher
e5bba9deb5
Added support for custom JSON mimetypes
11 years ago
Daniel Neuhäuser
52098e1e4f
Happy New Year 2014
11 years ago
Will Bowlin
3e90de2e10
corrected documentation for Request get_json()
11 years ago
Armin Ronacher
964174931d
Added request.get_json().
12 years ago
Armin Ronacher
4c27f7a8c4
Removed incorrect JSON exception subclasses
12 years ago
Thomas Waldmann
40fad2ece8
document python 2.6 minimum requirement, remove all stuff that refers to 2.5
12 years ago
Thomas Waldmann
6caaa8a527
automated change using python-modernize: use 'as' in except
12 years ago
Armin Ronacher
b146d8277a
Added wrapper module around simplejson/json for much simplified customization.
12 years ago
Finbarr O'Callaghan
48f7cdd016
various typo fixes
12 years ago
Armin Ronacher
c3d38a21c6
Removed json_available hack
12 years ago
jfinkels
91efb90fb3
Removed extra blank line to fix ReST formatted documentation string in wrappers.py. Should have gone with pull request #439 .
13 years ago
Anton I. Sipos
71b351173b
Move JSONHTTPException and JSONBadRequest to new module flask.exceptions.
13 years ago
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.
13 years ago
Armin Ronacher
ee8417dac8
Late but 2010 -> 2011 in some files
13 years ago
Armin Ronacher
63876614b6
Removed second mention of json. This fixes #290
13 years ago