Files
order/.venv/Lib/site-packages/flask/__pycache__/wrappers.cpython-312.pyc

58 lines
5.1 KiB
Plaintext
Raw Normal View History

2025-08-27 21:11:48 +08:00
<EFBFBD>
x<>g<EFBFBD><00><00><><00>dZddlmZddlmZddlmZddlm Z
ddl m Z ddl mZGd <09>d
e
<EFBFBD>Z Gd <0B>d ee <09>ZGd <0A>dee <09>Zy)z<>
flask.wrappers
~~~~~~~~~~~~~~
Implements the WSGI wrappers (request and response).
:copyright: 2010 Pallets
:license: BSD-3-Clause
<EFBFBD>)<01>
BadRequest)<01>Request)<01>Response)<01> JSONMixin<69>)<01>json)<01> current_appc<00><00>eZdZeZd<01>Zy)rc<00>v<00>tr*tjrtdj|<01><00><00>t<00><00>)Nz!Failed to decode JSON object: {0})r <00>debugr<00>format)<02>self<6C>es <20>7D:\mooc\order\.venv\Lib\site-packages\flask/wrappers.py<70>on_json_loading_failedz JSONMixin.on_json_loading_faileds,<00><00> <16>;<3B>,<2C>,<2C><1C>@<40>G<>G<><01>J<>K<> K<><18>l<EFBFBD><1A>N)<06>__name__<5F>
__module__<EFBFBD> __qualname__r<00> json_moduler<00>rrrrs <00><00><16>K<EFBFBD>rrc<00>R<00>eZdZdZdZdZdZed<03><00>Zed<04><00>Z ed<05><00>Z
d<06>Z y)ra<>The request object used by default in Flask. Remembers the
matched endpoint and view arguments.
It is what ends up as :class:`~flask.request`. If you want to replace
the request object used you can subclass this and set
:attr:`~flask.Flask.request_class` to your subclass.
The request object is a :class:`~werkzeug.wrappers.Request` subclass and
provides all of the attributes Werkzeug defines plus a few Flask
specific ones.
Nc<00>6<00>trtjdSy)z8Read-only view of the ``MAX_CONTENT_LENGTH`` config key.<2E>MAX_CONTENT_LENGTHN)r <00>config<69>rs r<00>max_content_lengthzRequest.max_content_lengthAs<00><00> <17><1E>%<25>%<25>&:<3A>;<3B> ;<3B> rc<00>H<00>|j<00>|jjSy)z<>The endpoint that matched the request. This in combination with
:attr:`view_args` can be used to reconstruct the same or a
modified URL. If an exception happened when matching, this will
be ``None``.
N)<02>url_rule<6C>endpointrs rr zRequest.endpointGs#<00><00> <10>=<3D>=<3D> $<24><17>=<3D>=<3D>)<29>)<29> )<29> %rc<00><><00>|jrBd|jjvr)|jjjdd<02>dSyy)z!The name of the current blueprint<6E>.rrN)rr <00>rsplitrs r<00> blueprintzRequest.blueprintQsE<00><00> <10>=<3D>=<3D>S<EFBFBD>D<EFBFBD>M<EFBFBD>M<EFBFBD>$:<3A>$:<3A>:<3A><17>=<3D>=<3D>)<29>)<29>0<>0<><13>a<EFBFBD>8<><11>;<3B> ;<3B>;<3B>=rc<00><><00>tj|<00>tr=tjr,|jdk7r|j
sddlm}||<00>yyyyy)Nzmultipart/form-datar)<01>attach_enctype_error_multidict)<08> RequestBase<73>_load_form_datar r <00>mimetype<70>files<65> debughelpersr&)rr&s rr(zRequest._load_form_dataWsQ<00><00><13>#<23>#<23>D<EFBFBD>)<29>
<18><1B>!<21>!<21><14> <0A> <0A>!6<>6<><18>J<EFBFBD>J<EFBFBD> D<> *<2A>4<EFBFBD> 0<> <1F>7<>"<22> r) rrr<00>__doc__r<00> view_args<67>routing_exception<6F>propertyrr r$r(rrrrrs\<00><00>
<08>,<14>H<EFBFBD><15>I<EFBFBD> <1D><15> <0A><<3C><0E><<3C>
<0E>*<2A><0E>*<2A><0E><<3C><0E><<3C>
1rrc<00>6<00><00>eZdZdZdZd<03>Ze<06>fd<04><08>Z<07>xZS)ra<>The response object that is used by default in Flask. Works like the
response object from Werkzeug but is set to have an HTML mimetype by
default. Quite often you don't have to create this object yourself because
:meth:`~flask.Flask.make_response` will take care of that for you.
If you want to replace the response object used you can subclass this and
set :attr:`~flask.Flask.response_class` to your subclass.
.. versionchanged:: 1.0
JSON support is added to the response, like the request. This is useful
when testing to get the test client response data as JSON.
.. versionchanged:: 1.0
Added :attr:`max_cookie_size`.
z text/htmlc<00>"<00>|j<00>S)N)<01>get_data)r<00>caches r<00>_get_data_for_jsonzResponse._get_data_for_json{s<00><00><13>}<7D>}<7D><EFBFBD>rc<00>R<00><01>trtjdStt|<00>S)z<>Read-only view of the :data:`MAX_COOKIE_SIZE` config key.
See :attr:`~werkzeug.wrappers.BaseResponse.max_cookie_size` in
Werkzeug's docs.
<20>MAX_COOKIE_SIZE)r r<00>superr<00>max_cookie_size)r<00> __class__s <20>rr8zResponse.max_cookie_size~s)<00><><00> <17><1E>%<25>%<25>&7<>8<> 8<><15>X<EFBFBD>t<EFBFBD>4<>4r) rrrr,<00>default_mimetyper4r/r8<00> __classcell__)r9s@rrrgs)<00><><00><08>"#<23><14><1F><0E>
5<><0E>
5rrN)r,<00>werkzeug.exceptionsr<00>werkzeug.wrappersrr'r<00> ResponseBase<73>werkzeug.wrappers.jsonr<00>
_JSONMixin<EFBFBD>r<00>globalsr rrr<00><module>rCsI<00><01><04>+<2B>4<>6<>:<3A><12> <20><1B>
<EFBFBD><1B>F1<>k<EFBFBD>9<EFBFBD>F1<>R"5<>|<7C>Y<EFBFBD>"5r