
    Ng	                   ^   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? ddl@mAZAmBZB ddlCmDZDmEZEmFZFmGZGmHZH g dZI 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VerifyTypes)URLQueryParams)Timer
URLPatternget_environment_proxiesis_https_redirectsame_origin)USE_CLIENT_DEFAULTAsyncClientClientTr:   )boundUr9   c                      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__     I/var/www/html/ai-engine/env/lib/python3.11/site-packages/httpx/_client.pyr?   r?   D   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   c   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   timerr3   returnNonec                0    || _         || _        || _        d S N_stream	_response_timerselfrV   rW   rX   s       rF   __init__zBoundSyncStream.__init__w        !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   r3   rY   rZ   )rY   re   rY   rZ   )r@   rA   rB   rC   rc   rj   rr   rD   rE   rF   rU   rU   q   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   r3   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   r3   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dcdZeddd            Zeddd             Zded#Z	dfd(Z
edgd*            Zej        dhd+            Zedid-            Zej        djd.            Zedkd0            Zej        dld2            Zedmd3            Zej        dnd4            Zedod6            Zej        dpd8            Zedqd:            Zej        drd<            Zedsd>            Zej        dtd@            ZdddddddeddA	dudPZdvdQZdwdxdRZdwdydSZ	 dwdzdTZd{dUZefd|dYZd}d\Zd~d]Zdd^Zdd_ZddaZddb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   	URL | strr   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_slashr1   	_base_url_build_auth_authr2   _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   urlr1   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://)r5   items
isinstancedictstrr1   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   r1   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.cookies1  r   rE   r2   c                    | j         S )zO
        Query parameters to include in the URL when sending requests.
        )r   r   s    rF   r   zBaseClient.params5  s    
 |rE   r)   c                .    t          |          | _        d S r\   )r2   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 )aR  
        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/clients/#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   )r1   is_relative_urlr   r   lstripr   )rb   r   	merge_urlmerge_raw_paths       rF   r   zBaseClient._merge_urls  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   r2   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   r1   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   r7   r   r6   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   c                    d|j         vrct          | j        t                    r| j        nt	          | j                  }t          di |j         d|                                i|_         d S d S )Nr   rD   )r   r   r   r?   r   r   r   )rb   r   r   s      rF   _set_timeoutzBaseClient._set_timeout4  s}    G... dl,<==+T\** 
 "&!V!V(:!V!VGOODUDU!V!V!VG /.rE   )r   r   r   r   r   r   r   r   r   r/   r   r   r   r   r   r   r   r   r   r   r   r   rY   rZ   )rY   r   )r   r1   rY   r1   )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   r1   )r   r   rY   rZ   )rY   r   )r   r&   rY   rZ   )rY   r   )r   r%   rY   rZ   )rY   r2   )r   r)   rY   rZ   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rY   r   )r   r   rY   r1   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   r1   )r   r   r   r1   r   r   rY   r   )r   r   r   r   rY   r&  )r   r   rY   rZ   )!r@   rA   rB   r   r   rc   propertyr   r   r   r   r   setterr   r   r   r   r   r   r8   r   r   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	 	 	 	W W W W W W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dvdYZdddeeeddXdwd[ZdddeeeddX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dXdwd`ZdydaZdzddZ	 	 	 d{d|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.  r0   r/  CertTypes | Noner0  r   r1  r   ProxyTypes | Noner   r   r2  0None | typing.Mapping[str, BaseTransport | None]r   r/   r   r3  r   r   r   r   r   r   r   r4  BaseTransport | Noner5  '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/  r0  r1  r3  r4  r5  r   c                r    i | ]3\  }}t          |          |d n                    |	          4S Nr.  r/  r0  r1  r3  r   r4   _init_proxy_transport
rJ   rK   r   r/  r0  r1  r3  rb   r   r.  s
      rF   r   z#Client.__init__.<locals>.<dictcomp>  st     @
 @
 @
 U sOO} "T++# ,  @
 @
 @
rE   c                4    i | ]\  }}t          |          |S rD   r4   rJ   rK   r4  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/  r0  r1  r   r   r2  r   r   r3  r   r   r   r4  r5  r   r   rL  messager   	proxy_map	__class__s   `    ````     `     `     rF   rc   zClient.__init__t  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)r5  rB  )r!   r    	rb   r.  r/  r0  r1  r3  r4  r5  r   s	            rF   rR  zClient._init_transport  sO      ? S))))
 
 
 	
rE   r   c           	     .    t          |||||||          S N)r.  r/  r0  r1  r3  r   r   )r    rb   r   r.  r/  r0  r1  r3  r   s           rF   rD  zClient._init_proxy_transport  s0     
 
 
 	
rE   r   r1   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.
        rT  r   matchesrS  rb   r   patternr4  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/clients/#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   rN  rO  rP  r   sendrb   r   r   r   r   r   r   r   r   r   r   r   r   r   rW  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
        rm  T)r   r   r   rV   N)r   rp  rr   rb   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rW   s                   rF   rV   zClient.streamG  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/clients/#request-instances
        5Cannot send a request, as the client has been closed.r   r   historyN)r   rN   rS   rQ  rR   r   r?   r   r)  r  _send_handling_authreadBaseExceptionrr   rb   r   rV   r   r   rW   r  s          rF   rp  zClient.send{  s    * ;+,,,VWWW!( *,<=="D!!! 	 	'"""''66++-	 , 
 
	  O 	 	 	NNI	s   B1 1
C;CCr	   rz  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   rz  )sync_auth_flownext_send_handling_redirectsrp  StopIterationrr   r   rz  r|  appendr}  	rb   r   r   r   rz  	auth_flowrW   next_requestr  s	            rF   r{  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   rz  has_redirect_locationr  r|  r  r}  rr   rb   r   r   rz  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")rg  r   r3   
sync_startr   rV   r.   rQ  r   handle_requestr   rU   r   extract_cookiesr   r   loggerinfor   http_versionr  reason_phraserb   r   r4  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   c               >    |                      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   AuthTypes | UseClientDefaultc               >    |                      d||||||||	  	        S )Z
        Send an `OPTIONS` request.

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

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

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

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

        **Parameters**: See `httpx.request`.
        PATCHri  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   rS  rr   rT  values)rb   r4  s     rF   rr   zClient.close  sx     ;+,,,%,DKO!!###!\0022 & &	(OO%%% -,& &rE   rb   r;   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   rQ  rS  	__enter__rT  r  )rb   msgr4  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   rS  __exit__rT  r  )rb   r  r  r  r4  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.  r0   r/  r6  r0  r   r1  r   r   r7  r   r   r2  r8  r   r/   r   r   r3  r   r   r   r   r   r   r   r4  r9  r5  r:  r   r   r   r   rY   rZ   )r.  r0   r/  r6  r0  r   r1  r   r3  r   r4  r9  r5  r:  r   r   rY   r   )r   r   r.  r0   r/  r6  r0  r   r1  r   r3  r   r   r   rY   r   )r   r1   rY   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r   rj  r   r   r   r   rY   r   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r   rj  r   r   r   r   rY   rr  
r   r   rV   r   r   r  r   rj  rY   r   
r   r   r   r	   r   r   rz  r  rY   r   r   r   r   r   rz  r  rY   r   r   r   rY   r   r   r   r   r   r   r   r   r   r   r  r   rj  r   r   r   r   rY   r   r   r   r   r   r   r   r   r   r   r  r   rj  r   r   r   r   rY   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r   rj  r   r   r   r   rY   r   rt   )rb   r;   rY   r;   NNNr  r  r  r  r  r  rY   rZ   )r@   rA   rB   rC   r   r   r   rc   rR  rD  rg  r8   r   r   rV   rp  r{  r  r  r   r  r  r  r  r  r  rr   r  r  __classcell__rY  s   @rF   r:   r:   >  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1 1 1 1 1 1f       D# # # #J" " " "P *.&*&*4F4F3E/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dqdL            ZdeedMdrdQZdsdUZdtdVZdudWZdddeeeddXdvdYZdddeeeddXdwd[ZdddeeeddX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dXdwd`ZdydaZdzddZ	 	 	 d{d|dkZ xZS )}r9   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.  r0   r/  r6  r0  r   r1  r   r7  r   r   r2  5None | typing.Mapping[str, AsyncBaseTransport | None]r   r/   r   r3  r   r   r   r   r   r   r   r4  AsyncBaseTransport | Noner5  r:  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 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 rA  rC  rE  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   rG  rH  s      rF   r   z(AsyncClient.__init__.<locals>.<dictcomp>  rI  rE   rJ  rV  s   `    ````     `     `     rF   rc   zAsyncClient.__init___  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	.. / 	
 	
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rZ  r   c	                X    ||S |t          |          S t          ||||||          S r\  )r   r   r]  s	            rF   rR  zAsyncClient._init_transport  sO      ? S))))!
 
 
 	
rE   r   c           	     .    t          |||||||          S r_  )r   r`  s           rF   rD  z!AsyncClient._init_proxy_transport  s0     "
 
 
 	
rE   r   r1   c                    | j                                         D ]'\  }}|                    |          r|| j        n|c S (| j        S rb  rc  re  s       rF   rg  zAsyncClient._transport_for_url  rh  rE   ri  r   r   r   r   r   r   r   r   r   r   r  rj  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/clients/#merging-of-configuration
        Nrl  rm  rn  ro  rq  s                   rF   r   zAsyncClient.request  s      D C 
 M'#5666$$! % 
 
 YYwTDTYUUUUUUUUUrE   typing.AsyncIterator[Response]c                K   |                      |||||||||	||          }|                     ||
|d           d{V }	 |W V  |                                 d{V  dS # |                                 d{V  w xY wrt  )r   rp  r}   ru  s                   rF   rV   zAsyncClient.stream3  s      8 $$! % 
 
 -	 # 
 
 
 
 
 
 
 
	$NNNN//###########(//##########s   A$ $B rv  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/clients/#request-instances
        rx  ry  N)r   rN   rS   rQ  rR   r   r?   r   r)  r  r{  areadr}  r}   r~  s          rF   rp  zAsyncClient.sendg  s@     * ;+,,,VWWW!( *,<=="D!!! 	 	'"""''6611-	 2 
 
 
 
 
 
 
 
	 'nn&&&&&&&&&O 	 	 	//#########I	s   !B? ?
C*	C%%C*r	   rz  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   rz  r  r  r}  r  s	            rF   r{  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   rz  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  )rg  r   r3   async_startr   rV   r"   rQ  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   r  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.head?  s\      " \\-! " 

 

 

 

 

 

 

 

 
	
rE   c               V   K   |                      d|||||||||	|
||           d{V S )r  r  ri  Nr  r  s                rF   r  zAsyncClient.post\  sh      * \\-! " 
 
 
 
 
 
 
 
 	
rE   c               V   K   |                      d|||||||||	|
||           d{V S )r  r  ri  Nr  r  s                rF   r  zAsyncClient.put  sh      * \\-! " 
 
 
 
 
 
 
 
 	
rE   c               V   K   |                      d|||||||||	|
||           d{V S )r  r  ri  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   rS  r}   rT  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   rQ  rS  
__aenter__rT  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   rS  	__aexit__rT  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.  r0   r/  r6  r0  r   r1  r   r   r7  r   r   r2  r  r   r/   r   r   r3  r   r   r   r   r   r   r   r4  r  r5  r:  r   r   r   r   rY   rZ   )r.  r0   r/  r6  r0  r   r1  r   r3  r   r4  r  r5  r:  r   r   rY   r   )r   r   r.  r0   r/  r6  r0  r   r1  r   r3  r   r   r   rY   r   )r   r1   rY   r   r  )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r   rj  r   r   r   r   rY   r  r  r  r  r  r  r  r  rt   )rb   r=   rY   r=   r  r  )r@   rA   rB   rC   r   r   r   rc   rR  rD  rg  r8   r   r   rV   rp  r{  r  r  r   r  r  r  r  r  r  r}   r  r  r  r  s   @rF   r9   r9   (  s       4 4r "&)-&*&*"!%#''+JN 6!&'2EI /37;@G/`: `: `: `: `: `: `: `:H #!%'/37;
 
 
 
 
: #!%'
 
 
 
 
(	 	 	 	  *.#'%)"&)-&*&*4F4F3E/37V 7V 7V 7V 7V 7Vr  *.#'%)"&)-&*&*4F4F3E/31$ 1$ 1$ 1$ 1$ 1$n 4F4F1 1 1 1 1 1f %  %  %  %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typingrN  
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   _urlsr1   r2   _utilsr3   r4   r5   r6   r7   __all__TypeVarr;   r=   r?   r8   	getLoggerr  r   r  keysr   EnumrN   rU   rv   CallableAny	EventHookr   r:   r9   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 + + + + + +                                 " $ # # # # # # #              :
9
9 FN3h'''FN3m,,,       ( &%''  
	7	#	#*[**
))CC+&+--CCC 
    $)       n   .$ $ $ $ $ $ $ $. OCO,	YW YW YW YW YW YW YW YWxgC gC gC gC gCZ gC gC gCTiF iF iF iF iF* iF iF iF iF iFrE   