← pallets/flask

CODEFOSSIL · flask

Request

class in src/flask/wrappers.py:18 · Born 2010-04-11 (DERIVED, confidence 0.90)

16years old
72changes
4fixes
27authors
0callers

Copied here from flask.py; its history is followed back to where it was born.

20112012201320142015201620172018201920202021202220232024202520262010-07-02 c4f64c1 working import layout for module2010-07-04 51a89bf Restored 2.5 compatibility and actual fix for the json problem2010-07-12 5e1b103 Added support for automagic OPTIONS2010-07-12 6e52355 tiny performance improvement2010-07-14 b1790cc Added MAX_CONTENT_LENGTH config key2010-08-03 549af62 Fix some typos in the docstrings2011-03-19 a06cd0a Started work on implementing blueprint based template loading2011-05-24 41952d2 respect request charset2011-05-29 7a08331 Latest iteration of the blueprint code. Far from being done2011-06-27 ea7a172 Test that dotted names work. This fixes #2582011-07-30 eba2f70 Clarified a sentence that no longer made sense with the new docs on request objects.2011-08-05 a69b437 Cleanup for the json property2011-08-05 2e022cb Added debughelpers. Flask will now tell you if you forget enctype2011-08-05 3400b78 Only provide that monkeypatch if all files are missing2011-08-05 ac99cd3 Better internal method name2011-08-08 ce70131 If JSON parsing fails it now issues a BadRequest exception.2011-08-09 6387661 Removed second mention of json. This fixes #2902012-03-08 9711fd4 On JSON requests, the JSON response should have Content-Type: application/json and the body of the response should be a JSON object.2012-04-01 91efb90 Removed extra blank line to fix ReST formatted documentation string in wrappers.py. Should have gone with pull request #439.2012-08-11 c3d38a2 Removed json_available hack2012-09-06 48f7cdd various typo fixes2013-05-18 6caaa8a automated change using python-modernize: use 'as' in except2013-05-18 40fad2e document python 2.6 minimum requirement, remove all stuff that refers to 2.52013-05-23 4c27f7a Removed incorrect JSON exception subclasses2013-06-12 9641749 Added request.get_json().2013-08-23 3e90de2 corrected documentation for Request get_json()2014-02-08 e5bba9d Added support for custom JSON mimetypes2014-03-15 db12a8f Update wrappers.py2014-04-11 fbda3f9 fix typo2014-09-03 bafc139 Added EXPLAIN_TEMPLATE_LOADING to help people debug templates not being loaded.2014-10-14 61097c4 Deprecate request.json property2014-10-18 7092890 Corrected api docs2014-11-05 8284217 docs: ``True``, ``False`` and ``None``2014-11-05 ad011bc docs: ``DEBUG``, ``SERVER_NAME``, ``PATH_INFO``2014-11-05 d4b9b98 docs: :mimetype:`application/json`2015-02-28 5d3e7b7 Add exception details to response2015-03-02 82b7983 Make exception contents conditional on DEBUG2015-03-04 19df249 Change logic to support when current_app is not available2015-03-05 290c371 Change to hardcoding exception contents to support Python3 json loading exception format2015-03-05 1cd9e91 Changed error message to include actual exception contents2015-03-05 44da905 Change format index to support Python 2.62015-03-05 7b08035 Remove unused import and clean control flow2015-06-06 2446ca6 0.11 => 1.02016-05-04 de25e98 minor rewording of get_json documentation for clarity (#1781)2016-05-23 c5900a1 s/1.0/0.11/ in versionadded/versionchanged markers2016-08-19 ca547f0 JSON response tests and first draft of code that passes2016-08-19 c9ef500 Mixin for JSON decoding code shared between request/response2016-08-19 1df2788 Use app_ctx instead of request_ctx to access the app2016-12-21 36425d5 Ignore cache on request.get_json(cache=False) call (#2089)2017-06-02 daf85d3 Clarify documentation for json parsing2017-06-02 217d5f9 mention mimetype and is_json2017-06-04 e97253e clean up JSON code and docs2017-06-26 723e665 remove deprecated Request.module2017-10-07 0a10908 Add additional information in the url_rule docs (#2467)2018-02-08 310fbfc revert copyright year to project start add copyright header to files2018-04-10 0e1e9a0 detect UTF encodings when loading json2019-05-06 025589e Reformat with black2019-06-01 b46f594 address flake8 issues2021-01-29 fdba0d2 remove JSONMixin2021-04-26 7723709 Add initial type hints2021-05-13 25884c4 fix typing that wasn't available in Python 3.6.02021-05-21 141fde1 Bugfix blueprint naming2021-05-21 67b0b7e cache blueprint path calculation2022-03-23 0a300d0 better replacement of original form KeyError2022-03-23 6578b49 better override for json BadRequest error2022-03-28 cd4ab00 fix typing2022-11-25 d178653 update requirements2023-04-20 44ffe6c add __future__ annotations2024-01-16 6000e80 address mypy strict findings2024-05-06 a363642 fix mypy finding with new werkzeug endpoint type2024-10-24 9e831e9 fix pyright type errors2024-11-01 c7a5388 add config and docs for limits2010-07-02 d0dc89e in with the new. i have the bits in places where i think they should be, now i just need to work on the import scheme layout2010-04-11 03148db Added testing documentation
Every commit that changed it, 2010-04-11 – 2024-11-01. Raised orange dots are fixes.
  1. Changed add config and docs for limits

    c7a5388 · David Lord

  2. Changed fix pyright type errors

    9e831e9 · bre-17387639

  3. Changed fix mypy finding with new werkzeug endpoint type

    a363642 · David Lord

  4. Changed address mypy strict findings

    6000e80 · David Lord

  5. Changed add __future__ annotations

    44ffe6c · David Lord

  6. Changed update requirements

    d178653 · David Lord

  7. Changed fix typing

    cd4ab00 · David Lord

  8. Changed better override for json BadRequest error

    6578b49 · David Lord

  9. Changed better replacement of original form KeyError

    0a300d0 · David Lord

  10. Changed cache blueprint path calculation

    67b0b7e · David Lord

  11. Changed Bugfix blueprint naming

    141fde1 · pgjones fix · INFERRED

  12. Changed fix typing that wasn't available in Python 3.6.0

    25884c4 · David Lord

  13. Changed Add initial type hints

    7723709 · pgjones

  14. Changed remove JSONMixin

    fdba0d2 · David Lord

  15. Changed address flake8 issues

    b46f594 · Jon S. Stumpf

  16. Changed Reformat with black

    025589e · David Baumgold

  17. Changed detect UTF encodings when loading json

    0e1e9a0 · David Lord

  18. Changed revert copyright year to project start add copyright header to files

    310fbfc · David Lord

  19. Changed Add additional information in the url_rule docs (#2467)

    0a10908 · Henry Chladil

  20. Changed remove deprecated Request.module

    723e665 · David Lord

  21. Changed clean up JSON code and docs

    e97253e · David Lord

  22. Changed mention mimetype and is_json

    217d5f9 · David Lord

  23. Changed Clarify documentation for json parsing

    daf85d3 · Grant Wu

  24. Changed Ignore cache on request.get_json(cache=False) call (#2089)

    36425d5 · Jiri Kuncar

  25. Changed Use app_ctx instead of request_ctx to access the app

    1df2788 · Adam Byrtek

  26. Changed Mixin for JSON decoding code shared between request/response

    c9ef500 · Adam Byrtek

  27. Changed JSON response tests and first draft of code that passes

    ca547f0 · Adam Byrtek

  28. Changed s/1.0/0.11/ in versionadded/versionchanged markers

    c5900a1 · ThiefMaster

  29. Changed minor rewording of get_json documentation for clarity (#1781)

    de25e98 · Miguel Grinberg

  30. Changed 0.11 => 1.0

    2446ca6 · Markus Unterwaditzer

  31. Changed Remove unused import and clean control flow

    7b08035 · Keyan Pishdadian

  32. Changed Change format index to support Python 2.6

    44da905 · Keyan Pishdadian

  33. Changed Changed error message to include actual exception contents

    1cd9e91 · Keyan Pishdadian

  34. Changed Change to hardcoding exception contents to support Python3 json loading exception format

    290c371 · Keyan Pishdadian

  35. Changed Change logic to support when current_app is not available

    19df249 · Keyan Pishdadian

  36. Changed Make exception contents conditional on DEBUG

    82b7983 · Keyan Pishdadian

  37. Changed Add exception details to response

    5d3e7b7 · Keyan Pishdadian

  38. Changed docs: :mimetype:`application/json`

    d4b9b98 · defuz

  39. Changed docs: ``DEBUG``, ``SERVER_NAME``, ``PATH_INFO``

    ad011bc · defuz

  40. Changed docs: ``True``, ``False`` and ``None``

    8284217 · defuz

  41. Changed Corrected api docs

    7092890 · Augustus D'Souza

  42. Changed Deprecate request.json property

    61097c4 · INADA Naoki

  43. Changed Added EXPLAIN_TEMPLATE_LOADING to help people debug templates not being loaded.

    bafc139 · Armin Ronacher

  44. Changed fix typo

    fbda3f9 · raimu

  45. Changed Update wrappers.py

    db12a8f · max demian

  46. Changed Added support for custom JSON mimetypes

    e5bba9d · Armin Ronacher

  47. Changed corrected documentation for Request get_json()

    3e90de2 · Will Bowlin

  48. Changed Added request.get_json().

    9641749 · Armin Ronacher

  49. Changed Removed incorrect JSON exception subclasses

    4c27f7a · Armin Ronacher

  50. Changed document python 2.6 minimum requirement, remove all stuff that refers to 2.5

    40fad2e · Thomas Waldmann

  51. Changed automated change using python-modernize: use 'as' in except

    6caaa8a · Thomas Waldmann

  52. Changed various typo fixes

    48f7cdd · Finbarr O'Callaghan

  53. Changed Removed json_available hack

    c3d38a2 · Armin Ronacher

  54. Changed Removed extra blank line to fix ReST formatted documentation string in wrappers.py. Should have gone with pull request #439.

    91efb90 · jfinkels

  55. Changed On JSON requests, the JSON response should have Content-Type: application/json and the body of the response should be a JSON object.

    9711fd4 · Jeffrey Finkelstein

  56. Changed Removed second mention of json. This fixes #290

    6387661 · Armin Ronacher fix · INFERRED

  57. Changed If JSON parsing fails it now issues a BadRequest exception.

    ce70131 · Armin Ronacher

  58. Changed Better internal method name

    ac99cd3 · Armin Ronacher

  59. Changed Only provide that monkeypatch if all files are missing

    3400b78 · Armin Ronacher

  60. Changed Added debughelpers. Flask will now tell you if you forget enctype

    2e022cb · Armin Ronacher

  61. Changed Cleanup for the json property

    a69b437 · Armin Ronacher

  62. Changed Clarified a sentence that no longer made sense with the new docs on request objects.

    eba2f70 · Armin Ronacher

  63. Changed Test that dotted names work. This fixes #258

    ea7a172 · Armin Ronacher fix · INFERRED

  64. Changed Latest iteration of the blueprint code. Far from being done

    7a08331 · Armin Ronacher

  65. Changed respect request charset

    41952d2 · Steve Romanow

  66. Changed Started work on implementing blueprint based template loading

    a06cd0a · Armin Ronacher

  67. Changed Fix some typos in the docstrings

    549af62 · jgraeme

  68. Changed Added MAX_CONTENT_LENGTH config key

    b1790cc · Armin Ronacher

  69. Changed tiny performance improvement

    6e52355 · Armin Ronacher

  70. Changed Added support for automagic OPTIONS

    5e1b103 · Armin Ronacher

  71. Changed Restored 2.5 compatibility and actual fix for the json problem

    51a89bf · Armin Ronacher fix · INFERRED

  72. Changed working import layout for module

    c4f64c1 · Justin Quick

  73. Moved here in with the new. i have the bits in places where i think they should be, now i just need to work on the import scheme layout

    d0dc89e · Justin Quick

  74. Born Added testing documentation

    03148db · Armin Ronacher