
    hM                        S SK Jr  S SKrS SKJr  S SKJr  S SKJ	r
  SSKJr  SSKJr  SS	KJr  \R"                  (       a  S S
KJr   " S S\5      r " S S\
5      r	g)    )annotationsN)
BadRequest)Request)Response   )json)current_app)_split_blueprint_path)Rulec                     ^  \ rS rSr% Sr\rS\S'   SrS\S'   Sr	S\S	'   Sr
S
\S'   \SS j5       r\SS j5       r\SS j5       r\SS j5       rSU 4S jjrSU 4S jjrSrU =r$ )r      a  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.
t.Anyjson_moduleNzRule | Noneurl_rulezdict[str, t.Any] | None	view_argszException | Nonerouting_exceptionc                @    [         (       a  [         R                  S   $ g)z8Read-only view of the ``MAX_CONTENT_LENGTH`` config key.MAX_CONTENT_LENGTHN)r	   configselfs    cC:\Users\ROHAN GUPTA\OneDrive\Desktop\mathbuddy-assessment\venv\Lib\site-packages\flask/wrappers.pymax_content_lengthRequest.max_content_length6   s     ;%%&:;;    c                J    U R                   b  U R                   R                  $ g)zThe endpoint that matched the request URL.

This will be ``None`` if matching failed or has not been
performed yet.

This in combination with :attr:`view_args` can be used to
reconstruct the same URL or a modified URL.
N)r   endpointr   s    r   r   Request.endpoint>   s!     ==$==)))r   c                V    U R                   nUb  SU;   a  UR                  S5      S   $ g)a2  The registered name of the current blueprint.

This will be ``None`` if the endpoint is not part of a
blueprint, or if URL matching failed or has not been performed
yet.

This does not necessarily match the name the blueprint was
created with. It may have been nested, or registered with a
different name.
N.r   )r   
rpartition)r   r   s     r   	blueprintRequest.blueprintM   s2     ==C8O&&s+A..r   c                :    U R                   nUc  / $ [        U5      $ )zThe registered names of the current blueprint upwards through
parent blueprints.

This will be an empty list if there is no current blueprint, or
if URL matching failed.

.. versionadded:: 2.0.1
)r"   r
   )r   names     r   
blueprintsRequest.blueprints`   s"     ~~<I$T**r   c                   > [         TU ]  5         [        (       aH  [        R                  (       a2  U R                  S:w  a!  U R
                  (       d  SSKJn  U" U 5        g g g g g )Nzmultipart/form-datar   )attach_enctype_error_multidict)super_load_form_datar	   debugmimetypefilesdebughelpersr)   )r   r)   	__class__s     r   r+   Request._load_form_dataq   sQ    !
 K!!!66JJD*40	  7 " r   c                   >  [         TU ]  U5      $ ! [         a1  n[        (       a  [        R                  (       a  e [        5       UeS nAff = f)N)r*   on_json_loading_failedr   r	   r,   )r   er0   s     r   r3   Request.on_json_loading_failed   sB    	&71!44 	&{{00,A%		&s    
A,AA )returnz
int | None)r7   
str | None)r7   z	list[str])r7   None)r4   zValueError | Noner7   r   )__name__
__module____qualname____firstlineno____doc__r   r   __annotations__r   r   r   propertyr   r   r"   r&   r+   r3   __static_attributes____classcell__r0   s   @r   r   r      s    
 K !Hk  *.I&- +/'.     $ + + 1& &r   r   c                  R   ^  \ rS rSr% SrSrS\S'   \rSr	\
S	U 4S jj5       rSrU =r$ )
r      a  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/htmlr8   default_mimetypeFc                T   > [         (       a  [         R                  S   $ [        TU ]  $ )zRead-only view of the :data:`MAX_COOKIE_SIZE` config key.

See :attr:`~werkzeug.wrappers.Response.max_cookie_size` in
Werkzeug's docs.
MAX_COOKIE_SIZE)r	   r   r*   max_cookie_size)r   r0   s    r   rI   Response.max_cookie_size   s)     ;%%&788 w&&r   r6   )r7   int)r:   r;   r<   r=   r>   rF   r?   r   r   autocorrect_location_headerr@   rI   rA   rB   rC   s   @r   r   r      s2    " $/j.K"'
' 
'r   r   )
__future__r   typingtwerkzeug.exceptionsr   werkzeug.wrappersr   RequestBaser   ResponseBase r   globalsr	   helpersr
   TYPE_CHECKINGwerkzeug.routingr   r6   r   r   <module>rY      sB    "  * 4 6    *??%v&k v&r#'| #'r   