+
    Pj	                   |   ^ RI Ht ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHtH	t	 ^ RI
Ht ^RIHt ^RIHtHtHt ^RIHtHtHtHtHtHt ^RIHt ^R	IHtHtHtHt ^R
IH t H!t!H"t"H#t# ^RI$H%t% ^RI&H't' ^RI(H)t)H*t* ^RI+H,t,H-t- ^RI.H/t/ ^RI0H1t1H2t2H3t3H4t4H5t5H6t6H7t7H8t8H9t9H:t:H;t;H<t<H=t=H>t>H?t? ^RI@HAtAHBtB ^RICHDtDHEtEHFtFHGtGHHtH . R)OtI]P                  ! RRR7      tK]P                  ! RRR7      tL ! R R4      tM]M! 4       tN]P                  ! R4      tPR] 2tQRP                  ]P                  ! 4        U u. uF  q R8w  g   K  V NK  	  up 4      tT ! R R]P                  4      tV ! R  R!]=4      tW ! R" R#]14      tX]P                  R$]P                  3,          t[ ! R% R&4      t\ ! R' R]\4      t] ! R( R]\4      t^R# u up i )*    )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AsyncClientClientT)boundUc                      ] tR t^DtRtRtR# )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____firstlineno____doc____static_attributes__r>       f/Users/ahmed/devFolder/Ultron/claude-voice/gateway/.venv/lib/python3.14/site-packages/httpx/_client.pyr=   r=   D   s    rE   r=   httpxzpython-httpx/z, identityc                  "    ] tR t^ct^t^t^tRtR# )ClientStater>   N)r?   r@   rA   rB   UNOPENEDOPENEDCLOSEDrD   r>   rE   rF   rJ   rJ   c   s     H F FrE   rJ   c                  >    ] tR t^qtRtR R ltR R ltR R ltRtR	# )
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.
c               (    V ^8  d   QhRRRRRRRR/# )	   streamr-   responser   timerr2   returnNoner>   )formats   "rF   __annotate__BoundSyncStream.__annotate__w   s,      $08AF	rE   c                	*    Wn         W n        W0n        R # N_stream	_response_timerselfrR   rS   rT   s   &&&&rF   __init__BoundSyncStream.__init__w        !rE   c                   V ^8  d   QhRR/# )rQ   rU   ztyping.Iterator[bytes]r>   )rW   s   "rF   rX   rY   ~   s      0 rE   c              #  	<   "   V P                    F  pVx  K	  	  R # 5ir[   r]   ra   chunks   & rF   __iter__BoundSyncStream.__iter__~   s     \\EK "s   c                   V ^8  d   QhRR/# rQ   rU   rV   r>   )rW   s   "rF   rX   rY      s      t rE   c                	    V P                   P                  4       p\        P                  ! VR 7      V P                  n        V P                  P                  4        R# )secondsN)r_   sync_elapseddatetime	timedeltar^   elapsedr]   closera   rp   s   & rF   ru   BoundSyncStream.close   s;    ++**,!)!3!3G!DrE   r^   r]   r_   N)	r?   r@   rA   rB   rC   rb   rj   ru   rD   r>   rE   rF   rO   rO   q   s    
 rE   rO   c                  >    ] tR t^tRtR R ltR R ltR R ltRtR	# )
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.
c               (    V ^8  d   QhRRRRRRRR/# )	rQ   rR   r!   rS   r   rT   r2   rU   rV   r>   )rW   s   "rF   rX   BoundAsyncStream.__annotate__   s,      %19BG	rE   c                	*    Wn         W n        W0n        R # r[   r\   r`   s   &&&&rF   rb   BoundAsyncStream.__init__   rd   rE   c                   V ^8  d   QhRR/# )rQ   rU   ztyping.AsyncIterator[bytes]r>   )rW   s   "rF   rX   r|      s      !< rE   c               	N   "   V P                     R j  xL
  pV5x  K   LDR # 5ir[   rg   rh   s   & rF   	__aiter__BoundAsyncStream.__aiter__   s$     << 	 	%K	<s   %" "	%"%c                   V ^8  d   QhRR/# rm   r>   )rW   s   "rF   rX   r|      s     $ $d $rE   c                	   "   V P                   P                  4       G R j  xL
 p\        P                  ! VR7      V P                  n        V P                  P                  4       G R j  xL
  R #  LN L5i)Nro   )r_   async_elapsedrr   rs   r^   rt   r]   acloserv   s   & rF   r   BoundAsyncStream.aclose   sO     1133!)!3!3G!Dll!!### 4#s"   A3A/AA3(A1)A31A3rx   N)	r?   r@   rA   rB   rC   rb   r   r   rD   r>   rE   rF   rz   rz      s    
$ $rE   rz   .c                  ,   ] tR t^tRRRRRRRRR]RRR	]R
RRRRRRR/R R llt]R R l4       t]R R l4       t	R R lt
R R lt]R R l4       t]P                  R R l4       t]R R  l4       t]P                  R! R" l4       t]R# R$ l4       t]P                  R% R& l4       t]R' R( l4       t]P                  R) R* l4       t]R+ R, l4       t]P                  R- R. l4       t]R/ R0 l4       t]P                  R1 R2 l4       t]R3 R4 l4       t]P                  R5 R6 l4       tR7RR8RR9RR:RRRRRRRR]R;R/	R< R= lltR> R? ltRWR@ RA lltRWRB RC lltRWRD RE lltRF RG lt]3RH RI lltRJ RK ltRL RM ltRN RO ltRP RQ ltRR RS lt RT RU lt!RVt"R# )X
BaseClientauthNparamsheaderscookiestimeoutfollow_redirectsFmax_redirectsevent_hooksbase_url 	trust_envTdefault_encodingutf-8c               H    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRR/# )rQ   r   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]rU   rV   r>   )rW   s   "rF   rX   BaseClient.__annotate__   s      +  +  + '	 +
 $ + $ +  +  +  + C +  +  + > + 
 +rE   c          	     	   Vf   / MTpV P                  \        V	4      4      V n        V P                  V4      V n        \        V4      V n        \        V4      V n        \        V4      V n
        \        V4      V n        W`n        Wpn        R\        VP!                  R. 4      4      R\        VP!                  R. 4      4      /V n        Wn        Wn        \(        P*                  V n        R # )NrequestrS   )_enforce_trailing_slashr0   	_base_url_build_auth_authr1   _paramsr   r   r   _cookiesr   _timeoutr   r   listget_event_hooks
_trust_env_default_encodingrJ   rK   _state)ra   r   r   r   r   r   r   r   r   r   r   r   s   &$$$$$$$$$$$rF   rb   BaseClient.__init__   s     (/b[55c(mD%%d+
"6*w'(( 0*tKOOIr:;[__Z<=
 $!1!**rE   c                   V ^8  d   QhRR/# rQ   rU   r   r>   )rW   s   "rF   rX   r      s     1 14 1rE   c                <    V P                   \        P                  8H  # )z"
Check if the client being closed
)r   rJ   rM   ra   s   &rF   	is_closedBaseClient.is_closed   s    
 {{k0000rE   c                   V ^8  d   QhRR/# r   r>   )rW   s   "rF   rX   r      s      4 rE   c                	    V P                   # r[   )r   r   s   &rF   r   BaseClient.trust_env   s    rE   c                    V ^8  d   QhRRRR/# )rQ   urlr0   rU   r>   )rW   s   "rF   rX   r      s     ; ;3 ;3 ;rE   c                	    VP                   P                  R 4      '       d   V# VP                  VP                   R ,           R7      # )   /raw_path)r   endswith	copy_withra   r   s   &&rF   r   "BaseClient._enforce_trailing_slash   s6    <<  &&J}}cllT&9}::rE   c               $    V ^8  d   QhRRRRRR/# )rQ   proxiesProxiesTypes | Noneallow_env_proxiesr   rU   zdict[str, Proxy | None]r>   )rW   s   "rF   rX   r      s$     % %*%?C%	 %rE   c           	     	   VfG   V'       d=   \        4       P                  4        UUu/ uF  w  r4Y4f   R M\        VR7      bK  	  upp# / # \        V\        4      '       dU   / pVP                  4        F<  w  r6\        V\
        \        34      '       d   \        VR7      MTpWu\        V4      &   K>  	  V# \        V\
        \        34      '       d   \        VR7      MTpRV/# u uppi )N)r   zall://)r4   itemsr   
isinstancedictstrr0   )ra   r   r   keyr   new_proxiesvalueproxys   &&&     rF   _get_proxy_mapBaseClient._get_proxy_map   s     ?  %<$=$C$C$E$E %C.@$E  Igt$$K%mmo
,6usCj,I,I%(u(-CH% . *4WsCj*I*IEg&wEe$$s   C#c                   V ^8  d   QhRR/# )rQ   rU   r   r>   )rW   s   "rF   rX   r      s       rE   c                	    V P                   # r[   )r   r   s   &rF   r   BaseClient.timeout   s    }}rE   c                    V ^8  d   QhRRRR/# )rQ   r   r.   rU   rV   r>   )rW   s   "rF   rX   r      s     ) )| ) )rE   c                	&    \        V4      V n        R # r[   )r   r   )ra   r   s   &&rF   r   r          (rE   c                   V ^8  d   QhRR/# )rQ   rU   dict[str, list[EventHook]]r>   )rW   s   "rF   rX   r      s     ! !7 !rE   c                	    V P                   # r[   )r   r   s   &rF   r   BaseClient.event_hooks   s       rE   c                    V ^8  d   QhRRRR/# )rQ   r   r   rU   rV   r>   )rW   s   "rF   rX   r      s     
 
'A 
d 
rE   c           	     	    R \        VP                  R . 4      4      R\        VP                  R. 4      4      /V n        R# )r   rS   N)r   r   r   )ra   r   s   &&rF   r   r      s8     tKOOIr:;[__Z<=
rE   c                   V ^8  d   QhRR/# )rQ   rU   Auth | Noner>   )rW   s   "rF   rX   r      s      k rE   c                    V P                   # )z
Authentication class used when none is passed at the request-level.

See also [Authentication][0].

[0]: /quickstart/#authentication
)r   r   s   &rF   r   BaseClient.auth   s     zzrE   c                    V ^8  d   QhRRRR/# )rQ   r   r"   rU   rV   r>   )rW   s   "rF   rX   r     s     , , ,t ,rE   c                	2    V P                  V4      V n        R # r[   )r   r   ra   r   s   &&rF   r   r     s    %%d+
rE   c                   V ^8  d   QhRR/# )rQ   rU   r0   r>   )rW   s   "rF   rX   r     s      # rE   c                    V P                   # )z;
Base URL to use when sending requests with relative URLs.
)r   r   s   &rF   r   BaseClient.base_url  s    
 ~~rE   c                    V ^8  d   QhRRRR/# )rQ   r   r   rU   rV   r>   )rW   s   "rF   rX   r     s     @ @I @$ @rE   c                	D    V P                  \        V4      4      V n        R # r[   )r   r0   r   r   s   &&rF   r   r     s    55c#h?rE   c                   V ^8  d   QhRR/# )rQ   rU   r   r>   )rW   s   "rF   rX   r            rE   c                    V P                   # )z0
HTTP headers to include when sending requests.
)_headersr   s   &rF   r   BaseClient.headers      
 }}rE   c                    V ^8  d   QhRRRR/# )rQ   r   r%   rU   rV   r>   )rW   s   "rF   rX   r     s     
' 
'{ 
't 
'rE   c                	    \        R RR\        P                  R4      RRR\        P                  R4      /4      pVP	                  V4       W n        R# )s   Accepts   */*s   Accept-Encodingasciis
   Connections
   keep-alives
   User-AgentN)r   ACCEPT_ENCODINGencode
USER_AGENTupdater   )ra   r   client_headerss   && rF   r   r     sP     6"O$:$:7$C}z009	
 	g&&rE   c                   V ^8  d   QhRR/# )rQ   rU   r   r>   )rW   s   "rF   rX   r   +  r   rE   c                    V P                   # )z1
Cookie values to include when sending requests.
)r   r   s   &rF   r   BaseClient.cookies*  r   rE   c                    V ^8  d   QhRRRR/# )rQ   r   r$   rU   rV   r>   )rW   s   "rF   rX   r   2  s     ) ){ )t )rE   c                	&    \        V4      V n        R # r[   )r   r   )ra   r   s   &&rF   r   r   1  r   rE   c                   V ^8  d   QhRR/# )rQ   rU   r1   r>   )rW   s   "rF   rX   r   6  s       rE   c                    V P                   # )z?
Query parameters to include in the URL when sending requests.
)r   r   s   &rF   r   BaseClient.params5  s    
 ||rE   c                    V ^8  d   QhRRRR/# )rQ   r   r(   rU   rV   r>   )rW   s   "rF   rX   r   =  s     + +_ + +rE   c                	&    \        V4      V n        R # r[   )r1   r   )ra   r   s   &&rF   r   r  <  s    "6*rE   contentdatafilesjson
extensionsc               H    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRR/# )rQ   methodr   r   r   r  RequestContent | Noner  RequestData | Noner  RequestFiles | Noner  typing.Any | Noner   r   r   r   r   r   r   TimeoutTypes | UseClientDefaultr  RequestExtensions | NonerU   r   r>   )rW   s   "rF   rX   r   @  s     1
 1
1
 1

 '1
 !1
 #1
  1
 '1
 $1
 $1
 11
 -1
 
1
rE   c       	        f   V P                  V4      pV P                  V4      pV P                  V	4      p	V P                  V4      pVf   / MTpRV9  dK   \	        V
\
        4      '       d   V P                  M
\        V
4      p
\        R/ VBRV
P                  4       /B p\        VVVVVVVVV	VR7
      # )a  
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
r   )r  r  r  r  r   r   r   r  r>   )
_merge_url_merge_headers_merge_cookies_merge_queryparamsr   r=   r   r   r   as_dictr   )ra   r
  r   r  r  r  r  r   r   r   r   r  s   &&&$$$$$$$$$rF   build_requestBaseClient.build_request@  s    4 ooc"%%g.%%g.((0%-R:
J& g'788 W% 
 F
FGOO4EFJ!
 	
rE   c                    V ^8  d   QhRRRR/# )rQ   r   r   rU   r0   r>   )rW   s   "rF   rX   r   s  s      i C rE   c                    \        V4      pVP                  '       dS   V P                  P                  VP                  P	                  R4      ,           pV P                  P                  VR7      # V# )zs
Merge a URL argument together with any 'base_url' on the client,
to create the URL used for the outgoing request.
r   r   )r0   is_relative_urlr   r   lstripr   )ra   r   	merge_urlmerge_raw_paths   &&  rF   r  BaseClient._merge_urls  s_    
 H	$$$ "]]33i6H6H6O6OPT6UUN==**N*CCrE   c                    V ^8  d   QhRRRR/# )rQ   r   r   rU   r>   )rW   s   "rF   rX   r     s     	 	&8 	DV 	rE   c                    V'       g   V P                   '       d)   \        V P                   4      pVP                  V4       V# V# )zx
Merge a cookies argument together with any cookies on the client,
to create the cookies used for the outgoing request.
)r   r   r   )ra   r   merged_cookiess   && rF   r  BaseClient._merge_cookies  s6    
 dlll$T\\2N!!'*!!rE   c                    V ^8  d   QhRRRR/# )rQ   r   r   rU   r>   )rW   s   "rF   rX   r     s      &8 DV rE   c                R    \        V P                  4      pVP                  V4       V# )zx
Merge a headers argument together with any headers on the client,
to create the headers used for the outgoing request.
)r   r   r   )ra   r   merged_headerss   && rF   r  BaseClient._merge_headers  s&    
 !.g&rE   c                    V ^8  d   QhRRRR/# )rQ   r   r   rU   r>   )rW   s   "rF   rX   r     s     
 
,
	
rE   c                    V'       g   V P                   '       d'   \        V P                   4      pVP                  V4      # V# )z
Merge a queryparams argument together with any queryparams on the client,
to create the queryparams used for the outgoing request.
)r   r1   merge)ra   r   merged_queryparamss   && rF   r  BaseClient._merge_queryparams  s4     T[[[!,T[[!9%++F33rE   c                    V ^8  d   QhRRRR/# )rQ   r   r   rU   r   r>   )rW   s   "rF   rX   r     s     
B 
B 0 
B[ 
BrE   c                	    Vf   R # \        V\        4      '       d   \        V^ ,          V^,          R7      # \        V\        4      '       d   V# \	        V4      '       d   \        VR7      # \        RV: 24      h)Nusernamepassword)funczInvalid "auth" argument: )r   tupler	   r   callabler
   	TypeErrorr   s   &&rF   r   BaseClient._build_auth  se    <e$$d1gQ@@d##Kd^^T**7x@AArE   c               $    V ^8  d   QhRRRRRR/# )rQ   r   r   r   #AuthTypes | UseClientDefault | NonerU   r   r>   )rW   s   "rF   rX   r     s(       2 
	rE   c                	   \        V\        4      '       d   V P                  MV P                  V4      pVe   V# VP                  P
                  VP                  P                  rCV'       g	   V'       d   \        W4R7      # \        4       # )Nr/  )	r   r=   r   r   r   r0  r1  r	   r   )ra   r   r   r0  r1  s   &&&  rF   _build_request_authBaseClient._build_request_auth  sj     %T+;<<DJJ$BRBRSWBX 	 K$[[117;;3G3G(xhBBvrE   c               $    V ^8  d   QhRRRRRR/# )rQ   r   r   rS   r   rU   r>   )rW   s   "rF   rX   r     s!     
 
w 
( 
w 
rE   c           	         V P                  W4      pV P                  W4      pV P                  WV4      pV P                  W4      p\	        V P
                  4      p\        VVVVVVP                  R7      # )zk
Given a request and a redirect response, return a new request that
should be used to effect the redirect.
)r
  r   r   r   rR   r  )_redirect_method_redirect_url_redirect_headers_redirect_streamr   r   r   r  )ra   r   rS   r
  r   r   rR   r   s   &&&     rF   _build_redirect_request"BaseClient._build_redirect_request  sy    
 &&w9  3((v>&&w7$,,'))
 	
rE   c               $    V ^8  d   QhRRRRRR/# )rQ   r   r   rS   r   rU   r   r>   )rW   s   "rF   rX   r     s!       8  rE   c                   VP                   pVP                  \        P                  8X  d
   VR8w  d   RpVP                  \        P                  8X  d
   VR8w  d   RpVP                  \        P
                  8X  d
   VR8X  d   RpV# )zs
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)ra   r   rS   r
  s   &&& rF   r>  BaseClient._redirect_method  st    
  5??2v7GF 5;;.6V3CF 5#:#::v?OFrE   c               $    V ^8  d   QhRRRRRR/# )rQ   r   r   rS   r   rU   r0   r>   )rW   s   "rF   rX   r     s!      W  S rE   c                $   VP                   R,          p \        V4      pTP                  '       d9   TP
                  '       g'   TP                  TP                  P
                  R7      pTP                  '       d   TP                  P                  T4      pTP                  P                  '       d9   TP                  '       g'   TP                  TP                  P                  R7      pT#   \         d   p\        RT R2TR7      RhRp?ii ; i)z,
Return the URL for the redirect to follow.
Locationz Invalid URL in location header: .r   N)host)fragment)r   r0   r   r   schemerS  r   r   r  joinrT  )ra   r   rS   locationr   excs   &&&   rF   r?  BaseClient._redirect_url  s     ##J/	h-C :::chhh--W[[%5%5-6C ++""3'C ;;--)=)=->C
'  	%23%q97	s   C- -D8D

Dc               (    V ^8  d   QhRRRRRRRR/# )	rQ   r   r   r   r0   r
  r   rU   r   r>   )rW   s   "rF   rX   r     s(       s C G rE   c                   \        VP                  4      p\        W!P                  4      '       gM   \	        VP                  V4      '       g   VP                  RR4       VP                  P                  R4      VR&   W1P                  8w  d,   VR8X  d%   VP                  RR4       VP                  RR4       VP                  RR4       V# )	zB
Return the headers that should be used for the redirect request.
AuthorizationNr   HostrG  zContent-LengthzTransfer-EncodingCookie)	r   r   r6   r   r5   popnetlocdecoder
  )ra   r   r   r
  r   s   &&&& rF   r@  BaseClient._redirect_headers  s     '//*3,,$W[[#66 OT2 "jj//8GFO^^#% KK($/KK+T2 	Hd#rE   c               $    V ^8  d   QhRRRRRR/# )rQ   r   r   r
  r   rU   z'SyncByteStream | AsyncByteStream | Noner>   )rW   s   "rF   rX   r   )  s$     	 		(+		0	rE   c                L    W!P                   8w  d
   VR8X  d   R# VP                  # )z?
Return the body that should be used for the redirect request.
rG  N)r
  rR   )ra   r   r
  s   &&&rF   rA  BaseClient._redirect_stream)  s!     ^^#%~~rE   c                    V ^8  d   QhRRRR/# )rQ   r   r   rU   rV   r>   )rW   s   "rF   rX   r   4  s     W WG W WrE   c                	   R VP                   9  dp   \        V P                  \        4      '       d   V P                  M\	        V P                  4      p\        R/ VP                   BR VP                  4       /B Vn         R# R# )r   Nr>   )r  r   r   r=   r   r   r  )ra   r   r   s   && rF   _set_timeoutBaseClient._set_timeout4  sg    G... dll,<== T\\* 
 "&!V(:(:!VGOODU!VG /rE   )r   r   r   r   r   r   r   r   r   r   r   r   r   r[   )#r?   r@   rA   rB   r   r   rb   propertyr   r   r   r   r   setterr   r   r   r   r   r   USE_CLIENT_DEFAULTr  r  r  r  r  r   r:  rB  r>  r?  r@  rA  rh  rD   r>   rE   rF   r   r      s    + "& + *.	 +
 '+ + '+ + !7 + "' + 3 + FJ + ! +  + AH +D 1 1  ;
%(   ^^) ) ! ! 
 
   
[[, ,   __@ @   ^^
' 
'   ^^) )   ]]+ +1

 *.1
 $(1
 &*1
 #'1
 *.1
 '+1
 '+1
 4F1
 041
f,	

B 5G$
&.:6	W WrE   r   c            *         a  ] tR tRtRtRRRRRRRRRR	R
RRR	RRRRRRRRR]RRR]R]RRRRRRRRRR	RR/R V 3R llltR	RR	R]RRR	3R R  llt	R	RR	R]R	3R! R" llt
R# R$ ltR%RR&RR'RR(RRRRRRRR]R]R]R)R/R* R+ llt]R%RR&RR'RR(RRRRRRRR]R]R]R)R/R, R- ll4       tR.RR]R]/R/ R0 lltR1 R2 ltR3 R4 ltR5 R6 ltRRRRRRR]R]R]R)R/R7 R8 lltRRRRRRR]R]R]R)R/R9 R: lltRRRRRRR]R]R]R)R/R; R< lltR%RR&RR'RR(RRRRRRRR]R]R]R)R/R= R> lltR%RR&RR'RR(RRRRRRRR]R]R]R)R/R? R@ lltR%RR&RR'RR(RRRRRRRR]R]R]R)R/RA RB lltRRRRRRR]R]R]R)R/RC RD lltRE RF ltRG RH ltRLRI RJ lltRKtV ;t# )Mr8   i>  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".
r   Nr   r   r   verifyTcerthttp1http2Fr   r   mountsr   r   limitsr   r   r   r   	transportappr   r   r   c          ,     p    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRRRRRR R!R"R#R$R%RR&R'R(R)/# )*rQ   r   r   r   r   r   r   r   r   rn  r/   ro  CertTypes | Nonerp  r   rq  r   ProxyTypes | Noner   r   rr  z0None | typing.Mapping[str, BaseTransport | None]r   r.   r   rs  r   r   r   r   r   r   r   rt  BaseTransport | Noneru  'typing.Callable[..., typing.Any] | Noner   r   r   rU   rV   r>   )rW   s   "rF   rX   Client.__annotate__t  s    `: `: `: '	`:
 $`: $`: `: `: `: `: !`: %`: C`: `: `:  !`:" #`:$ C%`:& '`:( ()`:* 5+`:, -`:. >/`:0 
1`:rE   c               	  < \         SV `  VVVVVVVVVVVR 7       V'       d    ^ RIpV
'       d1   Rp\        P
                  ! V\        4       V	'       d   \        R4      hV'       d   Rp\        P
                  ! V\        4       T;'       d    VRJ ;'       d    VRJ pT P                  T
;'       g    T	V4      pV P                  VVVVVVVVR7      V n
        VP                  4        UU	u/ uF.  w  pp	\        V4      V	f   RMV P                  V	VVVVVVR7      bK0  	  up	pV n        VeI   V P                  P                  VP                  4        UUu/ uF  w  pp\        V4      VbK  	  upp4       \!        \#        V P                  P                  4       4      4      V n        R#   \         d    \        R4      Rhi ; iu up	pi u uppi )r   r   r   r   r   r   r   r   r   r   r   NuUsing 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.rn  ro  rp  rq  rs  rt  ru  r   rn  ro  rp  rq  rs  r   superrb   h2ImportErrorwarningswarnDeprecationWarningRuntimeErrorr   _init_transport
_transportr   r3   _init_proxy_transport_mountsr   r   sortedra   r   r   r   r   rn  ro  rp  rq  r   r   rr  r   r   rs  r   r   r   rt  ru  r   r   r  messager   	proxy_mapr   	__class__s   &$$$$$$$$$$$$$$$$$$$$$     rF   rb   Client.__init__t  s   2 	-'#- 	 	
  4  MM'#56"#OPPV  MM'#56%KK#+KK)t:K''(8(85:KL	.. / 	
, (oo/@
 0
U sO} "++# , 
 0@
 LLBH,,.Q.YC)+.Q F4<<#5#5#789m  !S F@
  R   F) -4GG

)Gc               <    V ^8  d   QhRRRRRRRRRR	R
RRRRRRR/	# )rQ   rn  r/   ro  rw  rp  r   rq  rs  r   rt  ry  ru  rz  r   rU   r   r>   )rW   s   "rF   rX   r{    sd     
 

 
 	

 
 
 (
 5
 
 

rE   c	           	     	P    Ve   V# Ve   \        VR7      # \        VVVVVVR7      # N)ru  r  )r    r   	ra   rn  ro  rp  rq  rs  rt  ru  r   s	   &&&&&&&&&rF   r  Client._init_transport  s?      ? S))
 	
rE   c               8    V ^8  d   QhRRRRRRRRR	RR
RRRRR/# )rQ   r   r   rn  r/   ro  rw  rp  r   rq  rs  r   r   rU   r   r>   )rW   s   "rF   rX   r{    sZ     
 

 
 	

 
 
 
 
 

rE   c           
     	&    \        VVVVVVVR 7      # )rn  ro  rp  rq  rs  r   r   )r   ra   r   rn  ro  rp  rq  rs  r   s   &&&&&&&&rF   r  Client._init_proxy_transport  s&     
 	
rE   c                    V ^8  d   QhRRRR/# )rQ   r   r0   rU   r   r>   )rW   s   "rF   rX   r{    s     	 	c 	m 	rE   c                    V P                   P                  4        F2  w  r#VP                  V4      '       g   K  Vf   V P                  u # Tu # 	  V P                  # z
Returns the transport instance that should be used for a given URL.
This will either be the standard connection pool, or a proxy.
r  r   matchesr  ra   r   patternrt  s   &&  rF   _transport_for_urlClient._transport_for_url  M    
 #',,"4"4"6Gs##*3*;tJJ #7 rE   r  r  r  r  r  c               P    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRR/# rQ   r
  r   r   r   r  r  r  r  r  r  r  r  r   r   r   r   r   r   r   r8  r   bool | UseClientDefaultr   r  r  r  rU   r   r>   )rW   s   "rF   rX   r{    s     6P 6P6P 6P
 '6P !6P #6P  6P '6P $6P $6P 26P 26P 16P -6P  
!6PrE   c                   V	e   Rp\         P                  ! V\        4       V P                  VVVVVVVVV	VVR7      pV P	                  WVR7      # )aQ  
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
Setting 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   r  r  r  r  sendra   r
  r   r  r  r  r  r   r   r   r   r   r   r  r  r   s   &&&$$$$$$$$$$$  rF   r   Client.request  ss    B C 
 MM'#56$$! % 
 yy>NyOOrE   c               P    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRR/# )rQ   r
  r   r   r   r  r  r  r  r  r  r  r  r   r   r   r   r   r   r   r8  r   r  r   r  r  r  rU   ztyping.Iterator[Response]r>   )rW   s   "rF   rX   r{  H  s     1 11 1
 '1 !1 #1  1 '1 $1 $1 21 21 11 -1  
#!1rE   c             #     "   V P                  VVVVVVVVV	VVR7      pV P                  VV
VRR7      p Vx  VP                  4        R#   TP                  4        i ; i5iz
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
r  T)r   r   r   rR   N)r  r  ru   ra   r
  r   r  r  r  r  r   r   r   r   r   r   r  r   rS   s   &&&$$$$$$$$$$$  rF   rR   Client.streamG  s|     8 $$! % 
 99-	  
	NNNHNNs   2A A A AA rR   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# rQ   r   r   rR   r   r   r8  r   r  rU   r   r>   )rW   s   "rF   rX   r{  {  <     1 11 	1
 21 21 
1rE   c                  V P                   \        P                  8X  d   \        R4      h\        P                  V n         \        V\        4      '       d   V P                  MTpV P                  V4       V P                  W4      pV P                  VVV. R7      p V'       g   VP                  4        V#   \         d   pTP                  4        ThRp?ii ; i)aK  
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   rJ   rM   r  rL   r   r=   r   rh  r:  _send_handling_authreadBaseExceptionru   ra   r   rR   r   r   rS   rX  s   &&$$$  rF   r  Client.send{  s    * ;;+,,,VWW!(( *,<== !!! 	 	'"''6++-	 , 
	O 	NNI	s   B6 6CCCc          
     ,    V ^8  d   QhRRRRRRRRR	R
/# rQ   r   r   r   r   r   r   r  list[Response]rU   r   r>   )rW   s   "rF   rX   r{    s<            	 
    
 rE   c                	   VP                  V4      p \        V4      p V P                  VVVR7      p  VP                  V4      p\        T4      Tn        TP                  4        TpTP                  T4       K]    \         d    Tu TP                  4        # i ; i  \         d   pTP                  4        ThRp?ii ; i  TP                  4        i ; i)Tr   r  N)sync_auth_flownext_send_handling_redirectsr  StopIterationru   r   r  r  appendr  	ra   r   r   r   r  	auth_flowrS   next_requestrX  s	   &&&&&    rF   r  Client._send_handling_auth  s     ''0		9oG88%5# 9 
('0~~h'? (,G}H$MMO*GNN8, ) (' OO( % NN$I OOsL    C A; 3B 9C ;BB BB C )B;;C  C Cc               (    V ^8  d   QhRRRRRRRR/# 	rQ   r   r   r   r   r  r  rU   r   r>   )rW   s   "rF   rX   r{    s2     # ## #  	#
 
#rE   c                	    \        V4      V P                  8  d   \        RVR7      hV P                  R,           F  pV! V4       K  	  V P	                  V4      p V P                  R,           F  pV! V4       K  	  \        V4      Vn        VP                  '       g   V# V P                  W4      pW5.,           pV'       d   VP                  4        K  Wn
        V#   \         d   pTP                  4        ThRp?ii ; i)T#Exceeded maximum allowed redirects.rR  r   rS   N)lenr   r   r   _send_single_requestr   r  has_redirect_locationrB  r  r  r  ru   ra   r   r   r  hookrS   rX  s   &&&&   rF   r  Client._send_handling_redirects  s     7|d000&97  )))44W 5 009H --j99DN :#'= 555#O66wI!J.#MMO,3)#O   	s%   AC #2C C D*C<<Dc                    V ^8  d   QhRRRR/# rQ   r   r   rU   r   r>   )rW   s   "rF   rX   r{    s     " "G " "rE   c                   V P                  VP                  4      p\        4       pVP                  4        \	        VP
                  \        4      '       g   \        R4      h\        VR7      ;_uu_ 4        VP                  V4      pRRR4       \	        XP
                  \        4      '       g   Q hWn
        \        VP
                  WCR7      Vn        V P                  P                  V4       V P                  Vn        \         P#                  RVP$                  VP                  VP&                  VP(                  VP*                  4       V#   + '       g   i     L; i)<
Sends a single request, without handling any redirections.
z?Attempted to send an async request with a sync Client instance.rR  NrS   rT   HTTP Request: %s %s "%s %d %s")r  r   r2   
sync_startr   rR   r-   r  r   handle_requestr   rO   r   extract_cookiesr   r   loggerinfor
  http_versionrI  reason_phrasera   r   rt  rT   rS   s   &&   rF   r  Client._send_single_request  s    ++GKK8	'...99Q  W-- //8H . (//>::::")OOh
 	$$X.$($:$:!,NNKK!!  ""	
 + .-s   5EE	c               <    V ^8  d   QhRRRRRRRRR	R
RRRRRRRR/	# rQ   r   r   r   r   r   r   r   r   r   r8  r   r  r   r  r  r  rU   r   r>   )rW   s   "rF   rX   r{    d     
 

 '	

 $
 $
 2
 2
 1
 -
 

rE   c               6    V P                  RVVVVVVVVR7	      # )=
Send a `GET` request.

**Parameters**: See `httpx.request`.
rG  r   r   r   r   r   r   r  rR  	ra   r   r   r   r   r   r   r   r  s	   &&$$$$$$$rF   r   
Client.get  s5    " ||-!  

 
	
rE   c               <    V ^8  d   QhRRRRRRRRR	R
RRRRRRRR/	# rQ   r   r   r   r   r   r   r   r   r   AuthTypes | UseClientDefaultr   r  r   r  r  r  rU   r   r>   )rW   s   "rF   rX   r{  6  d     
 

 '	

 $
 $
 +
 2
 1
 -
 

rE   c               6    V P                  RVVVVVVVVR7	      # )B
Send an `OPTIONS` request.

**Parameters**: See `httpx.request`.
OPTIONSr  rR  r  s	   &&$$$$$$$rF   optionsClient.options6  s5    " ||-!  

 
	
rE   c               <    V ^8  d   QhRRRRRRRRR	R
RRRRRRRR/	# r  r>   )rW   s   "rF   rX   r{  S  r  rE   c               6    V P                  RVVVVVVVVR7	      # )>
Send a `HEAD` request.

**Parameters**: See `httpx.request`.
rF  r  rR  r  s	   &&$$$$$$$rF   headClient.headS  s5    " ||-!  

 
	
rE   c               L    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRR/# rQ   r   r   r  r  r  r  r  r  r  r  r   r   r   r   r   r   r   r  r   r  r   r  r  r  rU   r   r>   )rW   s   "rF   rX   r{  p       #
 #
#
 '	#

 !#
 ##
  #
 '#
 $#
 $#
 +#
 2#
 1#
 -#
 
#
rE   c               >    V P                  RVVVVVVVVV	V
VVR7      # )>
Send a `POST` request.

**Parameters**: See `httpx.request`.
rH  r  r  r  r  r   r   r   r   r   r   r  rR  ra   r   r  r  r  r  r   r   r   r   r   r   r  s   &&$$$$$$$$$$$rF   postClient.postp  sA    * ||-!  
 	
rE   c               L    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRR/# r  r>   )rW   s   "rF   rX   r{    r  rE   c               >    V P                  RVVVVVVVVV	V
VVR7      # )=
Send a `PUT` request.

**Parameters**: See `httpx.request`.
PUTr  rR  r	  s   &&$$$$$$$$$$$rF   put
Client.put  sA    * ||-!  
 	
rE   c               L    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRR/# r  r>   )rW   s   "rF   rX   r{    r  rE   c               >    V P                  RVVVVVVVVV	V
VVR7      # )?
Send a `PATCH` request.

**Parameters**: See `httpx.request`.
PATCHr  rR  r	  s   &&$$$$$$$$$$$rF   patchClient.patch  sA    * ||-!  
 	
rE   c               <    V ^8  d   QhRRRRRRRRR	R
RRRRRRRR/	# r  r>   )rW   s   "rF   rX   r{    r  rE   c               6    V P                  RVVVVVVVVR7	      # )@
Send a `DELETE` request.

**Parameters**: See `httpx.request`.
DELETEr  rR  r  s	   &&$$$$$$$rF   deleteClient.delete  s5    " ||-!  

 
	
rE   c                   V ^8  d   QhRR/# rm   r>   )rW   s   "rF   rX   r{    s     
& 
&t 
&rE   c                   V P                   \        P                  8w  di   \        P                  V n         V P                  P	                  4        V P
                  P                  4        F  pVf   K	  VP	                  4        K  	  R# R# z
Close transport and proxies.
N)r   rJ   rM   r  ru   r  values)ra   rt  s   & rF   ru   Client.close  s_     ;;+,,,%,,DKOO!!#!\\002	(OO% 3	 -rE   c                    V ^8  d   QhRRRR/# )rQ   ra   r9   rU   r>   )rW   s   "rF   rX   r{    s       a rE   c                	   V P                   \        P                  8w  d?   \        P                  R \        P                  R/V P                   ,          p\        V4      h\        P                  V n         V P                  P                  4        V P                  P                  4        F  pVf   K	  VP                  4        K  	  V # )-Cannot open a client instance more than once.9Cannot reopen a client instance, once it has been closed.)
r   rJ   rK   rL   rM   r  r  	__enter__r  r!  )ra   msgrt  s   &  rF   r'  Client.__enter__  s    ;;+...""$S""O
 kkC s##!((!!#,,.I$##% / rE   c               (    V ^8  d   QhRRRRRRRR/# 	rQ   exc_typeztype[BaseException] | None	exc_valuezBaseException | None	tracebackzTracebackType | NonerU   rV   r>   )rW   s   "rF   rX   r{    s8     C C,C (C (	C
 
CrE   c                	    \         P                  V n        V P                  P	                  WV4       V P
                  P                  4        F  pVf   K	  VP	                  WV4       K  	  R # r[   )rJ   rM   r   r  __exit__r  r!  )ra   r,  r-  r.  rt  s   &&&& rF   r0  Client.__exit__  sR     "((  i@,,.I$""8	B /rE   r  r   r  NNN) r?   r@   rA   rB   rC   r   r   r   rb   r  r  r  rl  r   r   rR   r  r  r  r  r   r  r  r
  r  r  r  ru   r'  r0  rD   __classcell__r  s   @rF   r8   r8   >  s4   3j`: "&`: *.	`:
 '+`: '+`: #`: "&`: `: `: $(`: (,`: FJ`: !7`: "'`:  (!`:" 3#`:$ FJ%`:& !'`:( +/)`:* 8<+`:, -`:. AH/`: `:H #!%'*.7;
: #!%'
(	6P
 *.6P $(6P &*6P #'6P *.6P '+6P '+6P 5G6P 5G6P 4F6P 046Pp 1
 *.1 $(1 &*1 #'1 *.1 '+1 '+1 5G1 5G1 4F1 041 1f1 	1
 5G1 5G1f D#J"H
 *.	

 '+
 '+
 5G
 5G
 4F
 04
:
 *.	

 '+
 '+
 .@
 5G
 4F
 04
:
 *.	

 '+
 '+
 .@
 5G
 4F
 04
:#
 *.	#

 $(#
 &*#
 #'#
 *.#
 '+#
 '+#
 .@#
 5G#
 4F#
 04#
J#
 *.	#

 $(#
 &*#
 #'#
 *.#
 '+#
 '+#
 .@#
 5G#
 4F#
 04#
J#
 *.	#

 $(#
 &*#
 #'#
 *.#
 '+#
 '+#
 .@#
 5G#
 4F#
 04#
J
 *.	

 '+
 '+
 .@
 5G
 4F
 04
:
&$C CrE   c            *         a  ] tR tRtRtRRRRRRRRRR	R
RRR	RRRRRRRRR]RRR]R]RRRRRRRRRR	RR/R V 3R llltR	RR	R]RRR	3R R  llt	R	RR	R]R	3R! R" llt
R# R$ ltR%RR&RR'RR(RRRRRRRR]R]R]R)R/R* R+ llt]R%RR&RR'RR(RRRRRRRR]R]R]R)R/R, R- ll4       tR.RR]R]/R/ R0 lltR1 R2 ltR3 R4 ltR5 R6 ltRRRRRRR]R]R]R)R/R7 R8 lltRRRRRRR]R]R]R)R/R9 R: lltRRRRRRR]R]R]R)R/R; R< lltR%RR&RR'RR(RRRRRRRR]R]R]R)R/R= R> lltR%RR&RR'RR(RRRRRRRR]R]R]R)R/R? R@ lltR%RR&RR'RR(RRRRRRRR]R]R]R)R/RA RB lltRRRRRRR]R]R]R)R/RC RD lltRE RF ltRG RH ltRLRI RJ lltRKtV ;t# )Mr7   i(  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".
r   Nr   r   r   rn  Tro  rp  rq  Fr   r   rr  r   r   rs  r   r   r   r   rt  ru  r   r   r   c          ,     p    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRRRRRR R!R"R#R$R%RR&R'R(R)/# )*rQ   r   r   r   r   r   r   r   r   rn  r/   ro  rw  rp  r   rq  r   rx  r   r   rr  z5None | typing.Mapping[str, AsyncBaseTransport | None]r   r.   r   rs  r   r   r   r   r   r   r   rt  AsyncBaseTransport | Noneru  rz  r   r   r   rU   rV   r>   )rW   s   "rF   rX   AsyncClient.__annotate___  s    `: `: `: '	`:
 $`: $`: `: `: `: `: !`: %`: H`: `: `:  !`:" #`:$ C%`:& '`:( -)`:* 5+`:, -`:. >/`:0 
1`:rE   c               	  < \         SV `  VVVVVVVVVVVR 7       V'       d    ^ RIpV
'       d1   Rp\        P
                  ! V\        4       V	'       d   \        R4      hV'       d   Rp\        P
                  ! V\        4       T;'       d    VRJ ;'       d    VRJ pT P                  T
;'       g    T	V4      pV P                  VVVVVVVVR7      V n
        VP                  4        UU	u/ uF.  w  pp	\        V4      V	f   RMV P                  V	VVVVVVR7      bK0  	  up	pV n        VeI   V P                  P                  VP                  4        UUu/ uF  w  pp\        V4      VbK  	  upp4       \!        \#        V P                  P                  4       4      4      V n        R#   \         d    \        R4      Rhi ; iu up	pi u uppi )r}  Nr~  r  r  zhThe 'app' shortcut is now deprecated. Use the explicit style 'transport=ASGITransport(app=...)' instead.r  r  r  r  s   &$$$$$$$$$$$$$$$$$$$$$     rF   rb   AsyncClient.__init___  s   2 	-'#- 	 	
  4  MM'#56"#OPPV  MM'#56%KK#+KK)t:K''(8(85:KL	.. / 	
. (oo/E
 0
U sO} "++# , 
 0E
 LLBH,,.Q.YC)+.Q F4<<#5#5#789m  !S HE
  Rr  c               <    V ^8  d   QhRRRRRRRRRR	R
RRRRRRR/	# )rQ   rn  r/   ro  rw  rp  r   rq  rs  r   rt  r8  ru  rz  r   rU   r   r>   )rW   s   "rF   rX   r9    sd     
 

 
 	

 
 
 -
 5
 
 

rE   c	           	     	P    Ve   V# Ve   \        VR7      # \        VVVVVVR7      # r  )r   r   r  s	   &&&&&&&&&rF   r  AsyncClient._init_transport  s?      ? S))!
 	
rE   c               8    V ^8  d   QhRRRRRRRRR	RR
RRRRR/# )rQ   r   r   rn  r/   ro  rw  rp  r   rq  rs  r   r   rU   r   r>   )rW   s   "rF   rX   r9    sZ     
 

 
 	

 
 
 
 
 

rE   c           
     	&    \        VVVVVVVR 7      # r  )r   r  s   &&&&&&&&rF   r  !AsyncClient._init_proxy_transport  s&     "
 	
rE   c                    V ^8  d   QhRRRR/# )rQ   r   r0   rU   r   r>   )rW   s   "rF   rX   r9    s     	 	c 	.@ 	rE   c                    V P                   P                  4        F2  w  r#VP                  V4      '       g   K  Vf   V P                  u # Tu # 	  V P                  # r  r  r  s   &&  rF   r  AsyncClient._transport_for_url  r  rE   r  r  r  r  r  c               P    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRR/# r  r>   )rW   s   "rF   rX   r9    s     7V 7V7V 7V
 '7V !7V #7V  7V '7V $7V $7V 27V 27V 17V -7V  
!7VrE   c                  "   V	e   Rp\         P                  ! V\        4       V P                  VVVVVVVVV	VVR7      pV P	                  WVR7      G Rj  xL
 #  L5i)aa  
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
Nr  r  r  r  r  s   &&&$$$$$$$$$$$  rF   r   AsyncClient.request  s|     D C 
 MM'#56$$! % 
 YYwDTYUUUUs   AAAAc               P    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRR/# )rQ   r
  r   r   r   r  r  r  r  r  r  r  r  r   r   r   r   r   r   r   r8  r   r  r   r  r  r  rU   ztyping.AsyncIterator[Response]r>   )rW   s   "rF   rX   r9  4  s     1$ 1$1$ 1$
 '1$ !1$ #1$  1$ '1$ $1$ $1$ 21$ 21$ 11$ -1$  
(!1$rE   c                 "   V P                  VVVVVVVVV	VVR7      pV P                  VV
VRR7      G Rj  xL
 p V5x  VP                  4       G Rj  xL
  R#  L$ L  TP                  4       G Rj  xL 
  i ; i5ir  )r  r  r   r  s   &&&$$$$$$$$$$$  rF   rR   AsyncClient.stream3  s     8 $$! % 
 -	 # 
 
	$N//###
 $(//###sD   5A>AA>A  A>AA>A> A;4A75A;;A>rR   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# r  r>   )rW   s   "rF   rX   r9  g  r  rE   c                 "   V P                   \        P                  8X  d   \        R4      h\        P                  V n         \        V\        4      '       d   V P                  MTpV P                  V4       V P                  W4      pV P                  VVV. R7      G Rj  xL
 p V'       g   VP                  4       G Rj  xL
  V#  L' L  \         d!   pTP                  4       G Rj  xL 
  ThRp?ii ; i5i)aP  
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
r  r  N)r   rJ   rM   r  rL   r   r=   r   rh  r:  r  areadr  r   r  s   &&$$$  rF   r  AsyncClient.sendg  s     * ;;+,,,VWW!(( *,<== !!! 	 	'"''611-	 2 
 
	nn&&&O
 '  	//###I	sZ   BC: C!C:&C .C C
C C:
C C7C2*C-+C22C77C:c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# r  r>   )rW   s   "rF   rX   r9    s<      %  % %  % 	 %
   % 
 %rE   c                	H  "   VP                  V4      p VP                  4       G R j  xL
 p V P                  VVVR7      G R j  xL
 p  VP                  V4      G R j  xL
 p\        T4      Tn        TP                  4       G R j  xL
  TpTP                  T4       Ku   Ly L^ LE  \         d    Tu TP                  4       G R j  xL 
  # i ; i LK  \         d!   pTP                  4       G R j  xL 
  ThR p?ii ; i  TP                  4       G R j  xL 
  i ; i5i)Nr  )async_auth_flow	__anext__r  asendStopAsyncIterationr   r   r  rM  r  r  r  s	   &&&&&    rF   r  AsyncClient._send_handling_auth  s     ((1		%%//11G!%!>!>%5# "? " 
(-6__X-F'F (,G}H$"..****GNN8,# 2 (G- (' ""$$$( + % "//+++I ""$$$s   D"D B"D B$D B(  B&!B( %#C C	C  D $D &B( (C5C 6D"	C
D"CC D!C<4C75C<<DD DDDD"c               (    V ^8  d   QhRRRRRRRR/# r  r>   )rW   s   "rF   rX   r9    s2     $ $$ $  	$
 
$rE   c                	r  "    \        V4      V P                  8  d   \        RVR7      hV P                  R,           F  pV! V4      G Rj  xL
  K  	  V P	                  V4      G Rj  xL
 p V P                  R,           F  pV! V4      G Rj  xL
  K  	  \        V4      Vn        VP                  '       g   V# V P                  W4      pW5.,           pV'       d   VP                  4       G Rj  xL
  K  Wn
        V#  L L Lt L  \         d!   pTP                  4       G Rj  xL 
  ThRp?ii ; i5i)Tr  rR  r   NrS   )r  r   r   r   r  r   r  r  rB  rM  r  r  r   r  s   &&&&   rF   r  $AsyncClient._send_handling_redirects  s#     7|d000&97  )))447m## 5 "66w??H --j99Dx.(( : $(= 555#O66wI!J.#"..***,3)#O' $? ) +
 ! oo'''	s   A
D7DD7)D*D7/!D	 D+D	 <D7=5D	 2D3D	 7D79D	  D7D7D	 D	 	D4D/'D*(D//D44D7c                    V ^8  d   QhRRRR/# r  r>   )rW   s   "rF   rX   r9    s     ! !' !h !rE   c                  "   V P                  VP                  4      p\        4       pVP                  4       G Rj  xL
  \	        VP
                  \        4      '       g   \        R4      h\        VR7      ;_uu_ 4        VP                  V4      G Rj  xL
 pRRR4       \	        XP
                  \        4      '       g   Q hWn
        \        VP
                  WCR7      Vn        V P                  P                  V4       V P                  Vn        \         P#                  RVP$                  VP                  VP&                  VP(                  VP*                  4       V#  EL$ L  + '       g   i     L; i5i)r  Nz?Attempted to send an sync request with an AsyncClient instance.rR  r  r  )r  r   r2   async_startr   rR   r!   r  r   handle_async_requestr   rz   r   r  r   r   r  r  r
  r  rI  r  r  s   &&   rF   r   AsyncClient._send_single_request  s"     ++GKK8	!!!'../::Q  W--&;;GDDH . (//?;;;;"*OOh
 	$$X.$($:$:!,NNKK!!  ""	
 7 	" E .-s;   9E7EAE7?E$E"E$CE7"E$$E4	/E7c               <    V ^8  d   QhRRRRRRRRR	R
RRRRRRRR/	# r  r>   )rW   s   "rF   rX   r9    r  rE   c               R   "   V P                  RVVVVVVVVR7	      G Rj  xL
 #  L5i)r  rG  r  NrR  r  s	   &&$$$$$$$rF   r   AsyncClient.get  sB     " \\-! " 

 

 
	
 

   '%'c               <    V ^8  d   QhRRRRRRRRR	R
RRRRRRRR/	# r  r>   )rW   s   "rF   rX   r9  "  r  rE   c               R   "   V P                  RVVVVVVVVR7	      G Rj  xL
 #  L5i)r  r  r  NrR  r  s	   &&$$$$$$$rF   r  AsyncClient.options"  sB     " \\-! " 

 

 
	
 

ra  c               <    V ^8  d   QhRRRRRRRRR	R
RRRRRRRR/	# r  r>   )rW   s   "rF   rX   r9  ?  r  rE   c               R   "   V P                  RVVVVVVVVR7	      G Rj  xL
 #  L5i)r   rF  r  NrR  r  s	   &&$$$$$$$rF   r  AsyncClient.head?  sB     " \\-! " 

 

 
	
 

ra  c               L    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRR/# r  r>   )rW   s   "rF   rX   r9  \  r  rE   c               Z   "   V P                  RVVVVVVVVV	V
VVR7      G Rj  xL
 #  L5i)r  rH  r  NrR  r	  s   &&$$$$$$$$$$$rF   r
  AsyncClient.post\  sN     * \\-! " 
 
 	
 
   "+)+c               L    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRR/# r  r>   )rW   s   "rF   rX   r9    r  rE   c               Z   "   V P                  RVVVVVVVVV	V
VVR7      G Rj  xL
 #  L5i)r  r  r  NrR  r	  s   &&$$$$$$$$$$$rF   r  AsyncClient.put  sN     * \\-! " 
 
 	
 
rk  c               L    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRR/# r  r>   )rW   s   "rF   rX   r9    r  rE   c               Z   "   V P                  RVVVVVVVVV	V
VVR7      G Rj  xL
 #  L5i)r  r  r  NrR  r	  s   &&$$$$$$$$$$$rF   r  AsyncClient.patch  sN     * \\-! " 
 
 	
 
rk  c               <    V ^8  d   QhRRRRRRRRR	R
RRRRRRRR/	# r  r>   )rW   s   "rF   rX   r9    r  rE   c               R   "   V P                  RVVVVVVVVR7	      G Rj  xL
 #  L5i)r  r  r  NrR  r  s	   &&$$$$$$$rF   r  AsyncClient.delete  sB     " \\-! " 

 

 
	
 

ra  c                   V ^8  d   QhRR/# rm   r>   )rW   s   "rF   rX   r9    s     
) 
)d 
)rE   c                D  "   V P                   \        P                  8w  dy   \        P                  V n         V P                  P	                  4       G Rj  xL
  V P
                  P                  4        F!  pVf   K	  VP	                  4       G Rj  xL
  K#  	  R# R#  LG L5ir   )r   rJ   rM   r  r   r  r!  )ra   r   s   & rF   r   AsyncClient.aclose  sw      ;;+,,,%,,DK//((***,,.$,,.(( /	 - + )s*   AB B"B <B BB B c                    V ^8  d   QhRRRR/# )rQ   ra   r;   rU   r>   )rW   s   "rF   rX   r9    s      q Q rE   c                	  "   V P                   \        P                  8w  d?   \        P                  R \        P                  R/V P                   ,          p\        V4      h\        P                  V n         V P                  P                  4       G Rj  xL
  V P                  P                  4        F!  pVf   K	  VP                  4       G Rj  xL
  K#  	  V #  LE L5i)r%  r&  N)
r   rJ   rK   rL   rM   r  r  
__aenter__r  r!  )ra   r(  r   s   &  rF   rz  AsyncClient.__aenter__  s     ;;+...""$S""O
 kkC s##!((oo((***\\((*E &&((( + 	 	+ )s*   BCC"C:CCCCc               (    V ^8  d   QhRRRRRRRR/# r+  r>   )rW   s   "rF   rX   r9    s8     F F,F (F (	F
 
FrE   c                	
  "   \         P                  V n        V P                  P	                  WV4      G R j  xL
  V P
                  P                  4        F#  pVf   K	  VP	                  WV4      G R j  xL
  K%  	  R #  LG L5ir[   )rJ   rM   r   r  	__aexit__r  r!  )ra   r,  r-  r.  r   s   &&&& rF   r~  AsyncClient.__aexit__  sk      "((oo''YGGG\\((*E ooh9EEE + 	H Fs'   5BA?"BB4B5BBr2  r3  ) r?   r@   rA   rB   rC   r   r   r   rb   r  r  r  rl  r   r   rR   r  r  r  r  r   r  r  r
  r  r  r  r   rz  r~  rD   r4  r5  s   @rF   r7   r7   (  s4   4l`: "&`: *.	`:
 '+`: '+`: #`: "&`: `: `: $(`: (,`: KO`: !7`: "'`:  (!`:" 3#`:$ FJ%`:& !'`:( 04)`:* 8<+`:, -`:. AH/`: `:H #!%'/37;
: #!%'
(	7V
 *.7V $(7V &*7V #'7V *.7V '+7V '+7V 5G7V 5G7V 4F7V 047Vr 1$
 *.1$ $(1$ &*1$ #'1$ *.1$ '+1$ '+1$ 5G1$ 5G1$ 4F1$ 041$ 1$f1 	1
 5G1 5G1f %D$L!F
 *.	

 '+
 '+
 5G
 5G
 4F
 04
:
 *.	

 '+
 '+
 .@
 5G
 4F
 04
:
 *.	

 '+
 '+
 .@
 5G
 4F
 04
:#
 *.	#

 $(#
 &*#
 #'#
 *.#
 '+#
 '+#
 .@#
 5G#
 4F#
 04#
J#
 *.	#

 $(#
 &*#
 #'#
 *.#
 '+#
 '+#
 .@#
 5G#
 4F#
 04#
J#
 *.	#

 $(#
 &*#
 #'#
 *.#
 '+#
 '+#
 .@#
 5G#
 4F#
 04#
J
 *.	

 '+
 '+
 .@
 5G
 4F
 04
:
)$F FrE   )rl  r7   r8   )_
__future__r   rr   enumloggingtypingr  
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.   r/   _urlsr0   r1   _utilsr2   r3   r4   r5   r6   __all__TypeVarr9   r;   r=   rl  	getLoggerr  r   rV  keysr   EnumrJ   rO   rz   CallableAny	EventHookr   r8   r7   )r   s   0rF   <module>r     s   "      :  $ 0 0  *  9 8   + ? B +    " $  : NN3h'
NN3m, ( &'  
		7	#[M*
))&++-C-S
1BSS-C
$)) n .$ $. OOCO,	YW YWxgCZ gCTiF* iFS& Ds   3F9 F9