
     @g                   Z   d dl mZ d dlZd dlZd dlZd dlZd dlZd dlmZm	Z	 d dl
mZ ddlmZ ddlmZmZmZ ddlmZmZmZmZmZmZ dd	lmZ dd
lmZmZmZmZ ddlm Z m!Z!m"Z"m#Z# ddl$m%Z% ddl&m'Z' ddl(m)Z)m*Z* ddl+m,Z,m-Z- ddl.m/Z/ ddl0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@ ddlAmBZBmCZC ddlDmEZEmFZFmGZGmHZHmIZI  ejJ        dd          ZK ejJ        dd          ZL G d d          ZM eM            ZN ejO        d          ZPde ZQdR                    d  ejS                    D                       ZT G d d ejU                  ZV G d! d"e=          ZW G d# d$e1          ZXejY        d%ejZ        f         Z[ G d& d'          Z\ G d( de\          Z] G d) de\          Z^dS )*    )annotationsN)asynccontextmanagercontextmanager)TracebackType   )__version__)Auth	BasicAuthFunctionAuth)DEFAULT_LIMITSDEFAULT_MAX_REDIRECTSDEFAULT_TIMEOUT_CONFIGLimitsProxyTimeout)SUPPORTED_DECODERS)
InvalidURLRemoteProtocolErrorTooManyRedirectsrequest_context)CookiesHeadersRequestResponse)codes)ASGITransport)AsyncBaseTransportBaseTransport)AsyncHTTPTransportHTTPTransport)WSGITransport)AsyncByteStream	AuthTypes	CertTypesCookieTypesHeaderTypesProxiesTypes
ProxyTypesQueryParamTypesRequestContentRequestDataRequestExtensionsRequestFilesSyncByteStreamTimeoutTypesURLTypesVerifyTypes)URLQueryParams)Timer
URLPatternget_environment_proxiesis_https_redirectsame_originTClient)boundUAsyncClientc                      e Zd ZdZdS )UseClientDefaulta<  
    For some parameters such as `auth=...` and `timeout=...` we need to be able
    to indicate the default "unset" state, in a way that is distinctly different
    to using `None`.

    The default "unset" state indicates that whatever default is set on the
    client should be used. This is different to setting `None`, which
    explicitly disables the parameter, possibly overriding a client default.

    For example we use `timeout=USE_CLIENT_DEFAULT` in the `request()` signature.
    Omitting the `timeout` parameter will send a request using whatever default
    timeout has been configured on the client. Including `timeout=None` will
    ensure no timeout is used.

    Note that user code shouldn't need to use the `USE_CLIENT_DEFAULT` constant,
    but it is used internally when a parameter is not included.
    N)__name__
__module____qualname____doc__     A/var/www/piapp/venv/lib/python3.11/site-packages/httpx/_client.pyr?   r?   C   s           rE   r?   httpxzpython-httpx/z, c                    g | ]
}|d k    |S )identityrD   ).0keys     rF   
<listcomp>rL   ^   s"    CCCS
1B1BS1B1B1BrE   c                      e Zd ZdZdZdZdS )ClientStater         N)r@   rA   rB   UNOPENEDOPENEDCLOSEDrD   rE   rF   rN   rN   b   s#         H F FFFrE   rN   c                  *    e Zd ZdZdd
ZddZddZdS )BoundSyncStreamz
    A byte stream that is bound to a given response instance, and that
    ensures the `response.elapsed` is set once the response is closed.
    streamr.   responser   timerr4   returnNonec                0    || _         || _        || _        d S N_stream	_response_timerselfrV   rW   rX   s       rF   __init__zBoundSyncStream.__init__v        !rE   typing.Iterator[bytes]c              #  &   K   | j         D ]}|V  d S r\   r^   rb   chunks     rF   __iter__zBoundSyncStream.__iter__}   s,      \ 	 	EKKKK	 	rE   c                    | j                                         }t          j        |          | j        _        | j                                         d S N)seconds)r`   sync_elapseddatetime	timedeltar_   elapsedr^   closerb   rm   s     rF   rr   zBoundSyncStream.close   sG    +**,,!)!3G!D!D!DrE   N)rV   r.   rW   r   rX   r4   rY   rZ   )rY   re   rY   rZ   )r@   rA   rB   rC   rc   rj   rr   rD   rE   rF   rU   rU   p   sZ         
           rE   rU   c                  *    e Zd ZdZdd
ZddZddZdS )BoundAsyncStreamz
    An async byte stream that is bound to a given response instance, and that
    ensures the `response.elapsed` is set once the response is closed.
    rV   r"   rW   r   rX   r4   rY   rZ   c                0    || _         || _        || _        d S r\   r]   ra   s       rF   rc   zBoundAsyncStream.__init__   rd   rE   typing.AsyncIterator[bytes]c               4   K   | j         2 3 d {V }|W V  6 d S r\   rg   rh   s     rF   	__aiter__zBoundAsyncStream.__aiter__   sF      < 	 	 	 	 	 	 	%KKKKK (<<s   c                   K   | j                                          d {V }t          j        |          | j        _        | j                                         d {V  d S rl   )r`   async_elapsedro   rp   r_   rq   r^   aclosers   s     rF   r}   zBoundAsyncStream.aclose   so      1133333333!)!3G!D!D!Dl!!###########rE   N)rV   r"   rW   r   rX   r4   rY   rZ   )rY   rx   rt   )r@   rA   rB   rC   rc   rz   r}   rD   rE   rF   rv   rv      sZ         
      $ $ $ $ $ $rE   rv   .c                     e Zd ZddddededdddddbdZedcd            Zedcd             Zddd#Z	ded(Z
edfd*            Zej        dgd+            Zedhd-            Zej        did.            Zedjd0            Zej        dkd2            Zedld3            Zej        dmd4            Zednd6            Zej        dod8            Zedpd:            Zej        dqd<            Zedrd>            Zej        dsd@            ZdddddddeddA	dtdPZdudQZdvdwdRZdvdxdSZ	 dvdydTZdzdUZefd{dYZd|d\Zd}d]Zd~d^Zdd_ZddaZdS )
BaseClientNF Tutf-8authparamsheaderscookiestimeoutfollow_redirectsmax_redirectsevent_hooksbase_url	trust_envdefault_encodingr   AuthTypes | Noner   QueryParamTypes | Noner   HeaderTypes | Noner   CookieTypes | Noner   r/   r   boolr   intr   +None | typing.Mapping[str, list[EventHook]]r   r0   r   r   #str | typing.Callable[[bytes], str]rY   rZ   c               &   |i n|}|                      t          |	                    | _        |                     |          | _        t          |          | _        t          |          | _        t          |          | _
        t          |          | _        || _        || _        t          |                    dg                     t          |                    dg                     d| _        |
| _        || _        t(          j        | _        d S NrequestrW   )r   rW   )_enforce_trailing_slashr2   	_base_url_build_auth_authr3   _paramsr   r   r   _cookiesr   _timeoutr   r   listget_event_hooks
_trust_env_default_encodingrN   rQ   _state)rb   r   r   r   r   r   r   r   r   r   r   r   s               rF   rc   zBaseClient.__init__   s     (/bb[55c(mmDD%%d++
"6**w''(((( 0*KOOIr::;;[__Z<<==
 
 $!1!*rE   c                ,    | j         t          j        k    S )z2
        Check if the client being closed
        )r   rN   rS   rb   s    rF   	is_closedzBaseClient.is_closed   s    
 {k000rE   c                    | j         S r\   )r   r   s    rF   r   zBaseClient.trust_env   s
    rE   urlr2   c                v    |j                             d          r|S |                    |j         dz             S )N   /raw_path)r   endswith	copy_withrb   r   s     rF   r   z"BaseClient._enforce_trailing_slash   s:    <  && 	J}}clT&9}:::rE   proxiesProxiesTypes | Noneallow_env_proxiesdict[str, Proxy | None]c                   |.|r*d t                                                      D             S i S t          |t                    r^i }|                                D ]E\  }}t          |t          t
          f          rt          |          n|}||t	          |          <   F|S t          |t          t
          f          rt          |          n|}d|iS )Nc                >    i | ]\  }}||d nt          |          S )Nr   )r   )rJ   rK   r   s      rF   
<dictcomp>z-BaseClient._get_proxy_map.<locals>.<dictcomp>   s>        S %C...  rE   r   zall://)r6   items
isinstancedictstrr2   r   )rb   r   r   new_proxiesrK   valueproxys          rF   _get_proxy_mapzBaseClient._get_proxy_map   s     ?   $;$=$=$C$C$E$E    Igt$$ 	%K%mmoo . .
U,6usCj,I,IT%((((u(-CHH%%*4WsCj*I*IVEg&&&&wEe$$rE   r   c                    | j         S r\   )r   r   s    rF   r   zBaseClient.timeout   s
    }rE   c                .    t          |          | _        d S r\   )r   r   )rb   r   s     rF   r   zBaseClient.timeout       ((rE   dict[str, list[EventHook]]c                    | j         S r\   )r   r   s    rF   r   zBaseClient.event_hooks   s      rE   c                    t          |                    dg                     t          |                    dg                     d| _        d S r   )r   r   r   )rb   r   s     rF   r   zBaseClient.event_hooks   sK     KOOIr::;;[__Z<<==
 
rE   Auth | Nonec                    | j         S )z
        Authentication class used when none is passed at the request-level.

        See also [Authentication][0].

        [0]: /quickstart/#authentication
        )r   r   s    rF   r   zBaseClient.auth   s     zrE   r#   c                :    |                      |          | _        d S r\   )r   r   rb   r   s     rF   r   zBaseClient.auth  s    %%d++


rE   c                    | j         S )zK
        Base URL to use when sending requests with relative URLs.
        )r   r   s    rF   r   zBaseClient.base_url
  s    
 ~rE   c                T    |                      t          |                    | _        d S r\   )r   r2   r   r   s     rF   r   zBaseClient.base_url  s!    55c#hh??rE   r   c                    | j         S )z@
        HTTP headers to include when sending requests.
        )_headersr   s    rF   r   zBaseClient.headers      
 }rE   r&   c                    t          dt                              d          dt                              d          d          }|                    |           || _        d S )Ns   */*asciis
   keep-alive)s   Accepts   Accept-Encodings
   Connections
   User-Agent)r   ACCEPT_ENCODINGencode
USER_AGENTupdater   )rb   r   client_headerss      rF   r   zBaseClient.headers  sd     !$3$:$:7$C$C,)0099	 
 
 	g&&&&rE   r   c                    | j         S )zA
        Cookie values to include when sending requests.
        )r   r   s    rF   r   zBaseClient.cookies)  r   rE   r%   c                .    t          |          | _        d S r\   )r   r   )rb   r   s     rF   r   zBaseClient.cookies0  r   rE   r3   c                    | j         S )zO
        Query parameters to include in the URL when sending requests.
        )r   r   s    rF   r   zBaseClient.params4  s    
 |rE   r)   c                .    t          |          | _        d S r\   )r3   r   )rb   r   s     rF   r   zBaseClient.params;  s    "6**rE   )	contentdatafilesjsonr   r   r   r   
extensionsmethodr   r   RequestContent | Noner   RequestData | Noner   RequestFiles | Noner   typing.Any | NoneTimeoutTypes | UseClientDefaultr   RequestExtensions | Noner   c       	           |                      |          }|                     |          }|                     |	          }	|                     |          }|i n|}d|vrMt	          |
t
                    r| j        nt          |
          }
t          di |d|
	                                i}t          |||||||||	|
  
        S )aJ  
        Build and return a request instance.

        * The `params`, `headers` and `cookies` arguments
        are merged with any values set on the client.
        * The `url` argument is merged with any `base_url` set on the client.

        See also: [Request instances][0]

        [0]: /advanced/#request-instances
        Nr   )r   r   r   r   r   r   r   r   rD   )
_merge_url_merge_headers_merge_cookies_merge_queryparamsr   r?   r   r   r   as_dictr   )rb   r   r   r   r   r   r   r   r   r   r   r   s               rF   build_requestzBaseClient.build_request?  s    4 ooc""%%g..%%g..((00%-RR:
J&& g'788&W%% 
 FF
FFGOO4E4EFFFJ!
 
 
 	
rE   c                    t          |          }|j        rB| j        j        |j                            d          z   }| j                            |          S |S )z
        Merge a URL argument together with any 'base_url' on the client,
        to create the URL used for the outgoing request.
        r   r   )r2   is_relative_urlr   r   lstripr   )rb   r   	merge_urlmerge_raw_paths       rF   r   zBaseClient._merge_urlr  s]    
 HH	$ 	D "]3i6H6O6OPT6U6UUN=**N*CCCrE   c                n    |s| j         r+t          | j                   }|                    |           |S |S )z
        Merge a cookies argument together with any cookies on the client,
        to create the cookies used for the outgoing request.
        )r   r   r   )rb   r   merged_cookiess      rF   r   zBaseClient._merge_cookies  sC    
  	"dl 	"$T\22N!!'***!!rE   c                X    t          | j                  }|                    |           |S )z
        Merge a headers argument together with any headers on the client,
        to create the headers used for the outgoing request.
        )r   r   r   )rb   r   merged_headerss      rF   r   zBaseClient._merge_headers  s-    
 !..g&&&rE   c                j    |s| j         r)t          | j                   }|                    |          S |S )z
        Merge a queryparams argument together with any queryparams on the client,
        to create the queryparams used for the outgoing request.
        )r   r3   merge)rb   r   merged_queryparamss      rF   r   zBaseClient._merge_queryparams  s>      	4T[ 	4!,T[!9!9%++F333rE   c                    |d S t          |t                    rt          |d         |d                   S t          |t                    r|S t	          |          rt          |          S t          d|          )Nr   r   usernamepassword)funczInvalid "auth" argument: )r   tupler
   r	   callabler   	TypeErrorr   s     rF   r   zBaseClient._build_auth  s    <4e$$ 	Bd1gQ@@@@d## 	BKd^^ 	BT****@@@AAArE   r   #AuthTypes | UseClientDefault | Noner	   c                    t          |t                    r| j        n|                     |          }||S |j        j        |j        j        }}|s|rt          ||          S t                      S )Nr   )	r   r?   r   r   r   r   r   r
   r	   )rb   r   r   r   r   s        rF   _build_request_authzBaseClient._build_request_auth  s~     %T+;<<XDJJ$BRBRSWBXBX 	 K$[17;3G( 	Cx 	ChBBBBvvrE   rW   r   c                   |                      ||          }|                     ||          }|                     |||          }|                     ||          }t	          | j                  }t          ||||||j                  S )z
        Given a request and a redirect response, return a new request that
        should be used to effect the redirect.
        )r   r   r   r   rV   r   )_redirect_method_redirect_url_redirect_headers_redirect_streamr   r   r   r   )rb   r   rW   r   r   r   rV   r   s           rF   _build_redirect_requestz"BaseClient._build_redirect_request  s    
 &&w99  (33((#v>>&&w77$,'')
 
 
 	
rE   c                    |j         }|j        t          j        k    r|dk    rd}|j        t          j        k    r|dk    rd}|j        t          j        k    r|dk    rd}|S )z
        When being redirected we may want to change the method of the request
        based on certain specs or browser behavior.
        HEADGETPOST)r   status_coder   	SEE_OTHERFOUNDMOVED_PERMANENTLY)rb   r   rW   r   s       rF   r  zBaseClient._redirect_method  st    
  5?22v7G7GF 5;..6V3C3CF 5#:::v?O?OFrE   c                   |j         d         }	 t          |          }n(# t          $ r}t          d| d|          dd}~ww xY w|j        r'|j        s |                    |j        j                  }|j        r|j        	                    |          }|j        j
        r'|j
        s |                    |j        j
                  }|S )z<
        Return the URL for the redirect to follow.
        Locationz Invalid URL in location header: .r   N)host)fragment)r   r2   r   r   schemer  r   r   r   joinr  )rb   r   rW   locationr   excs         rF   r  zBaseClient._redirect_url  s     #J/	h--CC 	 	 	%939997  	 : 	7ch 	7--W[%5-66C  	(+""3''C ; 	? 	?--)=->>C
s    
A?Ac                   t          |j                  }t          ||j                  sHt	          |j        |          s|                    dd           |j                            d          |d<   ||j        k    r2|dk    r,|                    dd           |                    dd           |                    dd           |S )	zR
        Return the headers that should be used for the redirect request.
        AuthorizationNr   Hostr  zContent-LengthzTransfer-EncodingCookie)	r   r   r8   r   r7   popnetlocdecoder   )rb   r   r   r   r   s        rF   r	  zBaseClient._redirect_headers  s     '/**3,, 	9$W[#66 3 OT222 "j//88GFOW^##% KK($///KK+T222 	Hd###rE   'SyncByteStream | AsyncByteStream | Nonec                6    ||j         k    r|dk    rdS |j        S )zO
        Return the body that should be used for the redirect request.
        r  N)r   rV   )rb   r   r   s      rF   r
  zBaseClient._redirect_stream(  s&     W^##%4~rE   )r   r   r   r   r   r   r   r   r   r/   r   r   r   r   r   r   r   r0   r   r   r   r   rY   rZ   )rY   r   )r   r2   rY   r2   )r   r   r   r   rY   r   )rY   r   )r   r/   rY   rZ   )rY   r   )r   r   rY   rZ   )rY   r   )r   r#   rY   rZ   )rY   r2   )r   r0   rY   rZ   )rY   r   )r   r&   rY   rZ   )rY   r   )r   r%   rY   rZ   )rY   r3   )r   r)   rY   rZ   )r   r   r   r0   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rY   r   )r   r0   rY   r2   r\   )r   r   rY   r   )r   r   rY   r   )r   r   rY   r   )r   r   rY   r   )r   r   r   r  rY   r	   )r   r   rW   r   rY   r   )r   r   rW   r   rY   r   )r   r   rW   r   rY   r2   )r   r   r   r2   r   r   rY   r   )r   r   r   r   rY   r%  ) r@   rA   rB   r   r   rc   propertyr   r   r   r   r   setterr   r   r   r   r   r   USE_CLIENT_DEFAULTr   r   r   r   r   r   r  r  r  r  r	  r
  rD   rE   rF   r   r      s        "&)-&*&* 6!&2EI@G +  +  +  +  +  +D 1 1 1 X1    X; ; ; ;
% % % %(    X ^) ) ) ^) ! ! ! X! 
 
 
 
    X 
[, , , [,    X _@ @ @ _@    X ^
' 
' 
' ^
'    X ^) ) ) ^)    X ]+ + + ]+ *.#'%)"&)-&*&*3E/31
 1
 1
 1
 1
 1
f   ,	 	 	 	 	     04
 
 
 
 

B 
B 
B 
B 5G    $
 
 
 
&   .   :   6	 	 	 	 	 	rE   r   c                      e Zd ZdZdddddddddddedeeddddddddl fd1Zddddedddfdmd3Zddddedfdnd5Z	dod8Z
dddddddeeedd9dpdJZedddddddeeedd9dqdL            ZdeedMdrdQZdsdUZdtdVZdudWZdddeeeddXdvdZZdddeeeddXdvd[ZdddeeeddXdvd\Zdddddddeeedd9dwd]Zdddddddeeedd9dwd^Zdddddddeeedd9dwd_ZdddeeeddXdvd`ZdxdaZdyddZ	 	 	 dzd{dkZ xZS )|r:   a	  
    An HTTP client, with connection pooling, HTTP/2, redirects, cookie persistence, etc.

    It can be shared between threads.

    Usage:

    ```python
    >>> client = httpx.Client()
    >>> response = client.get('https://example.org')
    ```

    **Parameters:**

    * **auth** - *(optional)* An authentication class to use when sending
    requests.
    * **params** - *(optional)* Query parameters to include in request URLs, as
    a string, dictionary, or sequence of two-tuples.
    * **headers** - *(optional)* Dictionary of HTTP headers to include when
    sending requests.
    * **cookies** - *(optional)* Dictionary of Cookie items to include when
    sending requests.
    * **verify** - *(optional)* SSL certificates (a.k.a CA bundle) used to
    verify the identity of requested hosts. Either `True` (default CA bundle),
    a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
    (which will disable verification).
    * **cert** - *(optional)* An SSL certificate used by the requested host
    to authenticate the client. Either a path to an SSL certificate file, or
    two-tuple of (certificate file, key file), or a three-tuple of (certificate
    file, key file, password).
    * **http2** - *(optional)* A boolean indicating if HTTP/2 support should be
    enabled. Defaults to `False`.
    * **proxy** - *(optional)* A proxy URL where all the traffic should be routed.
    * **proxies** - *(optional)* A dictionary mapping proxy keys to proxy
    URLs.
    * **timeout** - *(optional)* The timeout configuration to use when sending
    requests.
    * **limits** - *(optional)* The limits configuration to use.
    * **max_redirects** - *(optional)* The maximum number of redirect responses
    that should be followed.
    * **base_url** - *(optional)* A URL to use as the base when building
    request URLs.
    * **transport** - *(optional)* A transport class to use for sending requests
    over the network.
    * **app** - *(optional)* An WSGI application to send requests to,
    rather than sending actual network requests.
    * **trust_env** - *(optional)* Enables or disables usage of environment
    variables for configuration.
    * **default_encoding** - *(optional)* The default encoding to use for decoding
    response text, if no charset information is included in a response Content-Type
    header. Set to a callable for automatic character set detection. Default: "utf-8".
    NTFr   r   r   r   r   r   verifycerthttp1http2r   r   mountsr   r   limitsr   r   r   	transportappr   r   r   r   r   r   r   r   r   r   r,  r1   r-  CertTypes | Noner.  r   r/  r   ProxyTypes | Noner   r   r0  0None | typing.Mapping[str, BaseTransport | None]r   r/   r   r1  r   r   r   r   r   r   r0   r2  BaseTransport | Noner3  'typing.Callable[..., typing.Any] | Noner   r   r   rY   rZ   c                   t                                          ||||||||||           r$	 dd l}n# t          $ r t          d          d w xY w|
r-d}t	          j        |t                     |	rt          d          |rd}t	          j        |t                     o|d u o|d u }                     |
p|	|          } 	                    ||           _
         fd|                                D              _        |6 j                            d	 |                                D                        t          t           j                                                             _        d S )
Nr   r   uUsing http2=True, but the 'h2' package is not installed. Make sure to install httpx using `pip install httpx[http2]`.JThe 'proxies' argument is now deprecated. Use 'proxy' or 'mounts' instead.*Use either `proxy` or 'proxies', not both.zhThe 'app' shortcut is now deprecated. Use the explicit style 'transport=WSGITransport(app=...)' instead.r,  r-  r.  r/  r1  r2  r3  r   c                r    i | ]3\  }}t          |          |d n                    |	          4S Nr,  r-  r.  r/  r1  r   r5   _init_proxy_transport
rJ   rK   r   r-  r.  r/  r1  rb   r   r,  s
      rF   r   z#Client.__init__.<locals>.<dictcomp>  st     @
 @
 @
 U sOO} "T++# ,  @
 @
 @
rE   c                4    i | ]\  }}t          |          |S rD   r5   rJ   rK   r2  s      rF   r   z#Client.__init__.<locals>.<dictcomp>  $    QQQYC)QQQrE   superrc   h2ImportErrorwarningswarnDeprecationWarningRuntimeErrorr   _init_transport
_transportr   _mountsr   r   sortedrb   r   r   r   r   r,  r-  r.  r/  r   r   r0  r   r   r1  r   r   r   r2  r3  r   r   rJ  messager   	proxy_map	__class__s   `    ````     `     `     rF   rc   zClient.__init__j  s9   2 	-'#- 	 	
 	
 	
  					   !S    	Q4  M'#5666 Q"#OPPP 	7V  M'#5666%K#+K)t:K''(85:KLL	.. / 	
 	
@
 @
 @
 @
 @
 @
 @
 @
 @
 @
 (oo//@
 @
 @
 LQQ&,,..QQQ   F4<#5#5#7#78899	   = Ar   c	                X    ||S |t          |          S t          ||||||          S N)r3  r@  )r!   r    	rb   r,  r-  r.  r/  r1  r2  r3  r   s	            rF   rP  zClient._init_transport  sO      ? S))))
 
 
 	
rE   r   c           	     .    t          |||||||          S N)r,  r-  r.  r/  r1  r   r   )r    rb   r   r,  r-  r.  r/  r1  r   s           rF   rB  zClient._init_proxy_transport  s0     
 
 
 	
rE   r   r2   c                    | j                                         D ]'\  }}|                    |          r|| j        n|c S (| j        S z
        Returns the transport instance that should be used for a given URL.
        This will either be the standard connection pool, or a proxy.
        rR  r   matchesrQ  rb   r   patternr2  s       rF   _transport_for_urlzClient._transport_for_url  d    
 #',"4"4"6"6 	K 	KGYs## K*3*;tJJJK rE   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  bool | UseClientDefaultr   r   r   r   c                   |	d}t          j        |t                     |                     |||||||||	||          }|                     ||
|          S )a  
        Build and send a request.

        Equivalent to:

        ```python
        request = client.build_request(...)
        response = client.send(request, ...)
        ```

        See `Client.build_request()`, `Client.send()` and
        [Merging of configuration][0] for how the various parameters
        are merged with client-level configuration.

        [0]: /advanced/#merging-of-configuration
        NSetting per-request cookies=<...> is being deprecated, because the expected behaviour on cookie persistence is ambiguous. Set cookies directly on the client instance instead.r   r   r   r   r   r   r   r   r   r   r   r   r   rL  rM  rN  r   sendrb   r   r   r   r   r   r   r   r   r   r   r   r   r   rU  r   s                   rF   r   zClient.request  s    B C 
 M'#5666$$! % 
 
 yyt>NyOOOrE   typing.Iterator[Response]c             #     K   |                      |||||||||	||          }|                     ||
|d          }	 |V  |                                 dS # |                                 w xY wa  
        Alternative to `httpx.request()` that streams the response body
        instead of loading it into memory at once.

        **Parameters**: See `httpx.request`.

        See also: [Streaming Responses][0]

        [0]: /quickstart#streaming-responses
        rk  T)r   r   r   rV   N)r   rn  rr   rb   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rW   s                   rF   rV   zClient.stream=  s      8 $$! % 
 
 99-	  
 
	NNNNNHNNs   A A-rV   r   r   r   r   rV   c                  | j         t          j        k    rt          d          t          j        | _         t          |t                    r| j        n|}|                     ||          }| 	                    |||g           }	 |s|
                                 |S # t          $ r}|                                 |d}~ww xY w)a  
        Send a request.

        The request is sent as-is, unmodified.

        Typically you'll want to build one with `Client.build_request()`
        so that any client-level configuration is merged into the request,
        but passing an explicit `httpx.Request()` is supported as well.

        See also: [Request instances][0]

        [0]: /advanced/#request-instances
        5Cannot send a request, as the client has been closed.r   r   historyN)r   rN   rS   rO  rR   r   r?   r   r  _send_handling_authreadBaseExceptionrr   rb   r   rV   r   r   rW   r  s          rF   rn  zClient.sendq  s    * ;+,,,VWWW!( *,<=="D!!! 	 ''66++-	 , 
 
	  O 	 	 	NNI	s   B 
C&B<<Cr	   rx  list[Response]c                   |                     |          }	 t          |          }	 |                     |||          }	 	 |                    |          }n&# t          $ r |cY |                                 S w xY wt          |          |_        |                                 |}|	                    |           n(# t          $ r}|                                 |d }~ww xY w# |                                 w xY wNT)r   rx  )sync_auth_flownext_send_handling_redirectsrn  StopIterationrr   r   rx  rz  appendr{  	rb   r   r   r   rx  	auth_flowrW   next_requestr  s	            rF   ry  zClient._send_handling_auth  s,    ''00		9ooG88%5# 9  
('0~~h'?'?( ( ( (' OO( (,G}}H$MMOOO*GNN8,,,,$   NN$$$I#* OOsN   (C& A B= A:#B= 9A::AB= <C& =
C"CC""C& &C<c                   	 t          |          | j        k    rt          d|          | j        d         D ]} ||           |                     |          }	 | j        d         D ]} ||           t          |          |_        |j        s|S |                     ||          }||gz   }|r|	                                 n	||_
        |S n(# t          $ r}|                                 |d }~ww xY wNTz#Exceeded maximum allowed redirects.r  r   rW   )lenr   r   r   _send_single_requestr   rx  has_redirect_locationr  rz  r  r{  rr   rb   r   r   rx  hookrW   r  s          rF   r  zClient._send_handling_redirects  s@   	7||d000&97    ))4  W0099H -j9 # #DDNNNN#'== 5 $#O66wII!XJ.# $MMOOOO,3H)#O $
 !      	7	s   7C ;C 
C6C11C6c                   |                      |j                  }t                      }|                                 t	          |j        t                    st          d          t          |          5  |	                    |          }ddd           n# 1 swxY w Y   t	          |j        t                    sJ ||_
        t          |j        ||          |_        | j                            |           | j        |_        t                               d|j        |j        |j        |j        |j                   |S )L
        Sends a single request, without handling any redirections.
        z?Attempted to send an async request with a sync Client instance.r  NrW   rX   HTTP Request: %s %s "%s %d %s")re  r   r4   
sync_startr   rV   r.   rO  r   handle_requestr   rU   r   extract_cookiesr   r   loggerinfor   http_versionr  reason_phraserb   r   r2  rX   rW   s        rF   r  zClient._send_single_request  sx    ++GK88	'..99 	Q   W--- 	9 	9 //88H	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 (/>:::::")Ohe
 
 
 	$$X...$($:!,NK! "	
 	
 	
 s   6BBBr   r   r   r   r   r   r   AuthTypes | UseClientDefaultc               >    |                      d||||||||	  	        S )U
        Send a `GET` request.

        **Parameters**: See `httpx.request`.
        r  r  r  	rb   r   r   r   r   r   r   r   r   s	            rF   r   z
Client.get  s:    " ||-!  

 

 
	
rE   c               >    |                      d||||||||	  	        S )Z
        Send an `OPTIONS` request.

        **Parameters**: See `httpx.request`.
        OPTIONSr  r  r  s	            rF   optionszClient.options*  s:    " ||-!  

 

 
	
rE   c               >    |                      d||||||||	  	        S )V
        Send a `HEAD` request.

        **Parameters**: See `httpx.request`.
        r  r  r  r  s	            rF   headzClient.headG  s:    " ||-!  

 

 
	
rE   c               F    |                      d|||||||||	|
||          S )V
        Send a `POST` request.

        **Parameters**: See `httpx.request`.
        r  rg  r  rb   r   r   r   r   r   r   r   r   r   r   r   r   s                rF   postzClient.postd  sF    * ||-!  
 
 	
rE   c               F    |                      d|||||||||	|
||          S )U
        Send a `PUT` request.

        **Parameters**: See `httpx.request`.
        PUTrg  r  r  s                rF   putz
Client.put  sF    * ||-!  
 
 	
rE   c               F    |                      d|||||||||	|
||          S )W
        Send a `PATCH` request.

        **Parameters**: See `httpx.request`.
        PATCHrg  r  r  s                rF   patchzClient.patch  sF    * ||-!  
 
 	
rE   c               >    |                      d||||||||	  	        S )X
        Send a `DELETE` request.

        **Parameters**: See `httpx.request`.
        DELETEr  r  r  s	            rF   deletezClient.delete  s:    " ||-!  

 

 
	
rE   c                    | j         t          j        k    r\t          j        | _         | j                                         | j                                        D ]}||                                 dS dS z.
        Close transport and proxies.
        N)r   rN   rS   rQ  rr   rR  values)rb   r2  s     rF   rr   zClient.close  sx     ;+,,,%,DKO!!###!\0022 & &	(OO%%% -,& &rE   rb   r9   c                P   | j         t          j        k    r4t          j        dt          j        di| j                  }t          |          t          j        | _         | j                                         | j        	                                D ]}||                                 | S Nz-Cannot open a client instance more than once.z9Cannot reopen a client instance, once it has been closed.)
r   rN   rQ   rR   rS   rO  rQ  	__enter__rR  r  )rb   msgr2  s      rF   r  zClient.__enter__  s    ;+..."$S"O
 kC s###!(!!###,,.. 	& 	&I$##%%%rE   exc_typetype[BaseException] | None	exc_valueBaseException | None	tracebackTracebackType | Nonec                    t           j        | _        | j                            |||           | j                                        D ]}||                    |||           d S r\   )rN   rS   r   rQ  __exit__rR  r  )rb   r  r  r  r2  s        rF   r  zClient.__exit__  sr     "(  9i@@@,,.. 	C 	CI$""8Y	BBB	C 	CrE   ),r   r   r   r   r   r   r   r   r,  r1   r-  r4  r.  r   r/  r   r   r5  r   r   r0  r6  r   r/   r   r   r1  r   r   r   r   r   r   r0   r2  r7  r3  r8  r   r   r   r   rY   rZ   )r,  r1   r-  r4  r.  r   r/  r   r1  r   r2  r7  r3  r8  r   r   rY   r   )r   r   r,  r1   r-  r4  r.  r   r/  r   r1  r   r   r   rY   r   )r   r2   rY   r   r   r   r   r0   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r   rh  r   r   r   r   rY   r   )r   r   r   r0   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r   rh  r   r   r   r   rY   rp  
r   r   rV   r   r   r  r   rh  rY   r   
r   r   r   r	   r   r   rx  r}  rY   r   r   r   r   r   rx  r}  rY   r   r   r   rY   r   r   r0   r   r   r   r   r   r   r   r  r   rh  r   r   r   r   rY   r   r   r0   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r   rh  r   r   r   r   rY   r   rt   )rb   r9   rY   r9   NNNr  r  r  r  r  r  rY   rZ   )r@   rA   rB   rC   r   r   r   rc   rP  rB  re  r)  r   r   rV   rn  ry  r  r  r   r  r  r  r  r  r  rr   r  r  __classcell__rW  s   @rF   r:   r:   4  s       3 3p "&)-&*&*"!%#''+EI 6!&'2EI*.7;@G/`: `: `: `: `: `: `: `:H #!%'*.7;
 
 
 
 
: #!%'
 
 
 
 
(	 	 	 	  *.#'%)"&)-&*&*4F4F3E/36P 6P 6P 6P 6P 6Pp  *.#'%)"&)-&*&*4F4F3E/31 1 1 1 1 ^1n 4F4F/ / / / / /b       D# # # #J" " " "P *.&*&*-?4F3E/3
 
 
 
 
 
B *.&*&*-?4F3E/3
 
 
 
 
 
B *.&*&*-?4F3E/3
 
 
 
 
 
B *.#'%)"&)-&*&*-?4F3E/3#
 #
 #
 #
 #
 #
R *.#'%)"&)-&*&*-?4F3E/3#
 #
 #
 #
 #
 #
R *.#'%)"&)-&*&*-?4F3E/3#
 #
 #
 #
 #
 #
R *.&*&*-?4F3E/3
 
 
 
 
 
:
& 
& 
& 
&   ( 04*.*.	C C C C C C C C CrE   c                      e Zd ZdZdddddddddddedeeddddddddl fd1Zddddedddfdmd3Zddddedfdnd5Z	dod8Z
dddddddeeedd9dpdJZedddddddeeedd9dqdM            ZdeedNdrdRZdsdVZdtdWZdudXZdddeeeddYdvdZZdddeeeddYdwd[ZdddeeeddYdwd\Zdddddddeeedd9dxd]Zdddddddeeedd9dxd^Zdddddddeeedd9dxd_ZdddeeeddYdwd`ZdydaZdzddZ	 	 	 d{d|dkZ xZS )}r=   a	  
    An asynchronous HTTP client, with connection pooling, HTTP/2, redirects,
    cookie persistence, etc.

    It can be shared between tasks.

    Usage:

    ```python
    >>> async with httpx.AsyncClient() as client:
    >>>     response = await client.get('https://example.org')
    ```

    **Parameters:**

    * **auth** - *(optional)* An authentication class to use when sending
    requests.
    * **params** - *(optional)* Query parameters to include in request URLs, as
    a string, dictionary, or sequence of two-tuples.
    * **headers** - *(optional)* Dictionary of HTTP headers to include when
    sending requests.
    * **cookies** - *(optional)* Dictionary of Cookie items to include when
    sending requests.
    * **verify** - *(optional)* SSL certificates (a.k.a CA bundle) used to
    verify the identity of requested hosts. Either `True` (default CA bundle),
    a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
    (which will disable verification).
    * **cert** - *(optional)* An SSL certificate used by the requested host
    to authenticate the client. Either a path to an SSL certificate file, or
    two-tuple of (certificate file, key file), or a three-tuple of (certificate
    file, key file, password).
    * **http2** - *(optional)* A boolean indicating if HTTP/2 support should be
    enabled. Defaults to `False`.
    * **proxy** - *(optional)* A proxy URL where all the traffic should be routed.
    * **proxies** - *(optional)* A dictionary mapping HTTP protocols to proxy
    URLs.
    * **timeout** - *(optional)* The timeout configuration to use when sending
    requests.
    * **limits** - *(optional)* The limits configuration to use.
    * **max_redirects** - *(optional)* The maximum number of redirect responses
    that should be followed.
    * **base_url** - *(optional)* A URL to use as the base when building
    request URLs.
    * **transport** - *(optional)* A transport class to use for sending requests
    over the network.
    * **app** - *(optional)* An ASGI application to send requests to,
    rather than sending actual network requests.
    * **trust_env** - *(optional)* Enables or disables usage of environment
    variables for configuration.
    * **default_encoding** - *(optional)* The default encoding to use for decoding
    response text, if no charset information is included in a response Content-Type
    header. Set to a callable for automatic character set detection. Default: "utf-8".
    NTFr   r   r+  r   r   r   r   r   r   r   r   r,  r1   r-  r4  r.  r   r/  r   r5  r   r   r0  5None | typing.Mapping[str, AsyncBaseTransport | None]r   r/   r   r1  r   r   r   r   BNone | typing.Mapping[str, list[typing.Callable[..., typing.Any]]]r   r0   r2  AsyncBaseTransport | Noner3  r8  r   r   r   rY   rZ   c               
    t                                          ||||||||||           r$	 dd l}n# t          $ r t          d          d w xY w|
r-d}t	          j        |t                     |	rt          d          |rd}t	          j        |t                     o|d u }                     |
p|	|          } 	                    ||           _
         fd|                                D              _        |6 j                            d	 |                                D                        t          t           j                                                             _        d S )
Nr   r   r:  r;  r<  zhThe 'app' shortcut is now deprecated. Use the explicit style 'transport=ASGITransport(app=...)' instead.r=  c                r    i | ]3\  }}t          |          |d n                    |	          4S r?  rA  rC  s
      rF   r   z(AsyncClient.__init__.<locals>.<dictcomp>  st     E
 E
 E
 U sOO} "T++# ,  E
 E
 E
rE   c                4    i | ]\  }}t          |          |S rD   rE  rF  s      rF   r   z(AsyncClient.__init__.<locals>.<dictcomp>  rG  rE   rH  rT  s   `    ````     `     `     rF   rc   zAsyncClient.__init__S  s0   4 	-'#- 	 	
 	
 	
  					   !S    	Q4  M'#5666 Q"#OPPP 	7V  M'#5666%;)t*;''(85:KLL	.. / 	
 	
E
 E
 E
 E
 E
 E
 E
 E
 E
 E
 (oo//E
 E
 E
 LQQ&,,..QQQ   F4<#5#5#7#78899rX  r   c	                X    ||S |t          |          S t          ||||||          S rZ  )r   r   r[  s	            rF   rP  zAsyncClient._init_transport  sO      ? S))))!
 
 
 	
rE   r   c           	     .    t          |||||||          S r]  )r   r^  s           rF   rB  z!AsyncClient._init_proxy_transport  s0     "
 
 
 	
rE   r   r2   c                    | j                                         D ]'\  }}|                    |          r|| j        n|c S (| j        S r`  ra  rc  s       rF   re  zAsyncClient._transport_for_url  rf  rE   rg  r   r   r   r   r   r   r   r   r   r   r  rh  r   r   r   r   c                  K   |	d}t          j        |t                     |                     |||||||||	||          }|                     ||
|           d{V S )a  
        Build and send a request.

        Equivalent to:

        ```python
        request = client.build_request(...)
        response = await client.send(request, ...)
        ```

        See `AsyncClient.build_request()`, `AsyncClient.send()`
        and [Merging of configuration][0] for how the various parameters
        are merged with client-level configuration.

        [0]: /advanced/#merging-of-configuration
        Nrj  rk  rl  rm  ro  s                   rF   r   zAsyncClient.request  s      D C 
 M'#5666$$! % 
 
 YYwTDTYUUUUUUUUUrE   r  typing.AsyncIterator[Response]c                K   |                      |||||||||	||          }|                     ||
|d           d{V }	 |W V  |                                 d{V  dS # |                                 d{V  w xY wrr  )r   rn  r}   rs  s                   rF   rV   zAsyncClient.stream(  s      8 $$! % 
 
 -	 # 
 
 
 
 
 
 
 
	$NNNN//###########(//##########s   A$ $B rt  r   r   rV   c                 K   | j         t          j        k    rt          d          t          j        | _         t          |t                    r| j        n|}|                     ||          }| 	                    |||g            d{V }	 |s|
                                 d{V  |S # t          $ r!}|                                 d{V  |d}~ww xY w)a  
        Send a request.

        The request is sent as-is, unmodified.

        Typically you'll want to build one with `AsyncClient.build_request()`
        so that any client-level configuration is merged into the request,
        but passing an explicit `httpx.Request()` is supported as well.

        See also: [Request instances][0]

        [0]: /advanced/#request-instances
        rv  rw  N)r   rN   rS   rO  rR   r   r?   r   r  ry  areadr{  r}   r|  s          rF   rn  zAsyncClient.send\  s,     * ;+,,,VWWW!( *,<=="D!!! 	 ''6611-	 2 
 
 
 
 
 
 
 
	 'nn&&&&&&&&&O 	 	 	//#########I	s   B* *
C4CCr	   rx  r}  c                `  K   |                     |          }	 |                                 d {V }	 |                     |||           d {V }	 	 |                    |           d {V }n,# t          $ r |cY |                                 d {V  S w xY wt          |          |_        |                                 d {V  |}|	                    |           n.# t          $ r!}|                                 d {V  |d }~ww xY w# |                                 d {V  w xY wr  )async_auth_flow	__anext__r  asendStopAsyncIterationr}   r   rx  r  r  r{  r  s	            rF   ry  zAsyncClient._send_handling_auth  s      ((11		%%//11111111G!%!>!>%5# "? " "      
(-6__X-F-F'F'F'F'F'F'F- ( ( (' ""$$$$$$$$$$( (,G}}H$"..**********GNN8,,,,$   "//+++++++++I#* ""$$$$$$$$$$sN   9D A0 /C" 0B<C" BAC" !D "
D,DDD D-c                6  K   	 t          |          | j        k    rt          d|          | j        d         D ]} ||           d {V  |                     |           d {V }	 | j        d         D ]} ||           d {V  t          |          |_        |j        s|S |                     ||          }||gz   }|r|	                                 d {V  n	||_
        |S n.# t          $ r!}|                                 d {V  |d }~ww xY wr  )r  r   r   r   r  r   rx  r  r  r  r  r{  r}   r  s          rF   r  z$AsyncClient._send_handling_redirects  s     	7||d000&97    ))4 $ $d7mm########!66w????????H -j9 ) )D$x..((((((((#'== 5 $#O66wII!XJ.# $"..**********,3H)#O +
 !   oo'''''''''	9	s   *=C+ (AC+ +
D5DDc                  K   |                      |j                  }t                      }|                                 d{V  t	          |j        t                    st          d          t          |          5  |	                    |           d{V }ddd           n# 1 swxY w Y   t	          |j        t                    sJ ||_
        t          |j        ||          |_        | j                            |           | j        |_        t                               d|j        |j        |j        |j        |j                   |S )r  Nz?Attempted to send an sync request with an AsyncClient instance.r  r  r  )re  r   r4   async_startr   rV   r"   rO  r   handle_async_requestr   rv   r   r  r   r   r  r  r   r  r  r  r  s        rF   r  z AsyncClient._send_single_request  s      ++GK88	!!!!!!!!!'./:: 	Q   W--- 	E 	E&;;GDDDDDDDDH	E 	E 	E 	E 	E 	E 	E 	E 	E 	E 	E 	E 	E 	E 	E (/?;;;;;"*Ohe
 
 
 	$$X...$($:!,NK! "	
 	
 	
 s   >B&&B*-B*r  c               N   K   |                      d||||||||	  	         d{V S )r  r  r  Nr  r  s	            rF   r   zAsyncClient.get  s\      " \\-! " 

 

 

 

 

 

 

 

 
	
rE   c               N   K   |                      d||||||||	  	         d{V S )r  r  r  Nr  r  s	            rF   r  zAsyncClient.options  s\      " \\-! " 

 

 

 

 

 

 

 

 
	
rE   c               N   K   |                      d||||||||	  	         d{V S )r  r  r  Nr  r  s	            rF   r  zAsyncClient.head2  s\      " \\-! " 

 

 

 

 

 

 

 

 
	
rE   c               V   K   |                      d|||||||||	|
||           d{V S )r  r  rg  Nr  r  s                rF   r  zAsyncClient.postO  sh      * \\-! " 
 
 
 
 
 
 
 
 	
rE   c               V   K   |                      d|||||||||	|
||           d{V S )r  r  rg  Nr  r  s                rF   r  zAsyncClient.putt  sh      * \\-! " 
 
 
 
 
 
 
 
 	
rE   c               V   K   |                      d|||||||||	|
||           d{V S )r  r  rg  Nr  r  s                rF   r  zAsyncClient.patch  sh      * \\-! " 
 
 
 
 
 
 
 
 	
rE   c               N   K   |                      d||||||||	  	         d{V S )r  r  r  Nr  r  s	            rF   r  zAsyncClient.delete  s\      " \\-! " 

 

 

 

 

 

 

 

 
	
rE   c                  K   | j         t          j        k    rht          j        | _         | j                                         d{V  | j                                        D ] }||                                 d{V  dS dS r  )r   rN   rS   rQ  r}   rR  r  )rb   r   s     rF   r}   zAsyncClient.aclose  s       ;+,,,%,DK/((*********,,.. ) )$,,..((((((( -,) )rE   rb   r<   c                l  K   | j         t          j        k    r4t          j        dt          j        di| j                  }t          |          t          j        | _         | j                                         d {V  | j        	                                D ]}||                                 d {V  | S r  )
r   rN   rQ   rR   rS   rO  rQ  
__aenter__rR  r  )rb   r  r   s      rF   r  zAsyncClient.__aenter__  s      ;+..."$S"O
 kC s###!(o((*********\((** 	) 	)E &&(((((((((rE   r  r  r  r  r  r  c                   K   t           j        | _        | j                            |||           d {V  | j                                        D ]!}||                    |||           d {V  "d S r\   )rN   rS   r   rQ  	__aexit__rR  r  )rb   r  r  r  r   s        rF   r  zAsyncClient.__aexit__  s       "(o'')YGGGGGGGGG\((** 	F 	FE ooh	9EEEEEEEEE	F 	FrE   ),r   r   r   r   r   r   r   r   r,  r1   r-  r4  r.  r   r/  r   r   r5  r   r   r0  r  r   r/   r   r   r1  r   r   r   r   r  r   r0   r2  r  r3  r8  r   r   r   r   rY   rZ   )r,  r1   r-  r4  r.  r   r/  r   r1  r   r2  r  r3  r8  r   r   rY   r   )r   r   r,  r1   r-  r4  r.  r   r/  r   r1  r   r   r   rY   r   )r   r2   rY   r   r  )r   r   r   r0   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r   rh  r   r   r   r   rY   r  r  r  r  r  )r   r0   r   r   r   r   r   r   r   r  r   rh  r   r   r   r   rY   r   r  r  rt   )rb   r<   rY   r<   r  r  )r@   rA   rB   rC   r   r   r   rc   rP  rB  re  r)  r   r   rV   rn  ry  r  r  r   r  r  r  r  r  r  r}   r  r  r  r  s   @rF   r=   r=     s       4 4r "&)-&*&*"!%#''+JN 6!&'2JN/37;@G1a: a: a: a: a: a: a: a:J #!%'/37;
 
 
 
 
: #!%'
 
 
 
 
(	 	 	 	  *.#'%)"&)-&*&*4F4F3E/37V 7V 7V 7V 7V 7Vr  *.#'%)"&)-&*&*-?4F3E/31$ 1$ 1$ 1$ 1$ 1$n 4F4F/ / / / / /b %  %  %  %D$ $ $ $L! ! ! !N *.&*&*4F4F3E/3
 
 
 
 
 
B *.&*&*-?4F3E/3
 
 
 
 
 
B *.&*&*-?4F3E/3
 
 
 
 
 
B *.#'%)"&)-&*&*-?4F3E/3#
 #
 #
 #
 #
 #
R *.#'%)"&)-&*&*-?4F3E/3#
 #
 #
 #
 #
 #
R *.#'%)"&)-&*&*-?4F3E/3#
 #
 #
 #
 #
 #
R *.&*&*-?4F3E/3
 
 
 
 
 
:
) 
) 
) 
)   ( 04*.*.	F F F F F F F F FrE   )_
__future__r   ro   enumloggingtypingrL  
contextlibr   r   typesr   r   r   r	   r
   r   _configr   r   r   r   r   r   	_decodersr   _exceptionsr   r   r   r   _modelsr   r   r   r   _status_codesr   _transports.asgir   _transports.baser   r   _transports.defaultr   r    _transports.wsgir!   _typesr"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   _urlsr2   r3   _utilsr4   r5   r6   r7   r8   TypeVarr9   r<   r?   r)  	getLoggerr  r   r  keysr   EnumrN   rU   rv   CallableAny	EventHookr   r:   r=   rD   rE   rF   <module>r     s   " " " " " "      : : : : : : : :       $ $ $ $ $ $ 0 0 0 0 0 0 0 0 0 0                * ) ) ) ) )            9 8 8 8 8 8 8 8 8 8 8 8             + + + + + + ? ? ? ? ? ? ? ? B B B B B B B B + + + + + +                                   $ $ # # # # # # #              FN3h'''FN3m,,,       ( &%''  
	7	#	#*[**
))CC+&+--CCC 
    $)       n   .$ $ $ $ $ $ $ $. OCO,	P P P P P P P PfeC eC eC eC eCZ eC eC eCPhF hF hF hF hF* hF hF hF hF hFrE   