Ë
    RPf€2  ã                  ó  — d dl mZ d dlZd dlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZmZmZmZmZmZmZmZmZmZmZmZmZ dddddddddded	d
dd
dœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zedddddddddded	d
dd
dœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„«       Zddddddd	dd
ed
dœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zddddddd	dd
ed
dœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zddddddd	dd
ed
dœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zddddddddddd	dd
ed
dœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zddddddddddd	dd
ed
dœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zddddddddddd	dd
ed
dœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Z ddddddd	dd
ed
dœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Z!y)é    )ÚannotationsN)Úcontextmanageré   )ÚClient)ÚDEFAULT_TIMEOUT_CONFIG)ÚResponse)Ú	AuthTypesÚ	CertTypesÚCookieTypesÚHeaderTypesÚProxiesTypesÚ
ProxyTypesÚQueryParamTypesÚRequestContentÚRequestDataÚRequestFilesÚTimeoutTypesÚURLTypesÚVerifyTypesFT)ÚparamsÚcontentÚdataÚfilesÚjsonÚheadersÚcookiesÚauthÚproxyÚproxiesÚtimeoutÚfollow_redirectsÚverifyÚcertÚ	trust_envc               óˆ   — t        ||
|||||¬«      5 }|j                  | ||||||||	|¬«
      cddd«       S # 1 sw Y   yxY w)a©  
    Sends an HTTP request.

    **Parameters:**

    * **method** - HTTP method for the new `Request` object: `GET`, `OPTIONS`,
    `HEAD`, `POST`, `PUT`, `PATCH`, or `DELETE`.
    * **url** - URL for the new `Request` object.
    * **params** - *(optional)* Query parameters to include in the URL, as a
    string, dictionary, or sequence of two-tuples.
    * **content** - *(optional)* Binary content to include in the body of the
    request, as bytes or a byte iterator.
    * **data** - *(optional)* Form data to include in the body of the request,
    as a dictionary.
    * **files** - *(optional)* A dictionary of upload files to include in the
    body of the request.
    * **json** - *(optional)* A JSON serializable object to include in the body
    of the request.
    * **headers** - *(optional)* Dictionary of HTTP headers to include in the
    request.
    * **cookies** - *(optional)* Dictionary of Cookie items to include in the
    request.
    * **auth** - *(optional)* An authentication class to use when sending the
    request.
    * **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
    the request.
    * **follow_redirects** - *(optional)* Enables or disables HTTP redirects.
    * **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).
    * **trust_env** - *(optional)* Enables or disables usage of environment
    variables for configuration.

    **Returns:** `Response`

    Usage:

    ```
    >>> import httpx
    >>> response = httpx.request('GET', 'https://httpbin.org/get')
    >>> response
    <Response [200 OK]>
    ```
    ©r   r   r   r#   r"   r    r$   ©
ÚmethodÚurlr   r   r   r   r   r   r   r!   N)r   Úrequest)r(   r)   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   Úclients                     úD/var/www/fastapitest/venv/lib/python3.12/site-packages/httpx/_api.pyr*   r*      sk   € ôN 
ØØØØØØØô
ð 
ð 
Ø�~‰~ØØØØØØØØØØ-ð ó 
÷
÷ 
ò 
ús	   “8¸Ac             #  óÂ   K  — t        ||
|||||¬«      5 }|j                  | ||||||||	|¬«
      5 }|–— ddd«       ddd«       y# 1 sw Y   ŒxY w# 1 sw Y   yxY w­w)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&   r'   N)r   Ústream)r(   r)   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r+   Úresponses                      r,   r.   r.   x   s‘   è ø€ ô> 
ØØØØØØØô
ð ð 
Ø�]‰]ØØØØØØØØØØ-ð ó 
ð 	ð ØŠN÷	÷ð ÷	ð 	ú÷ð üs1   ‚A•A±A¶A¾	AÁA	ÁAÁAÁA©r   r   r   r   r   r   r!   r#   r"   r    r$   c               ó2   — t        d| |||||||||	|
|¬«      S )zë
    Sends a `GET` request.

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

    Note that the `data`, `files`, `json` and `content` parameters are not available
    on this function, as `GET` requests should not include a request body.
    ÚGETr0   ©r*   ©r)   r   r   r   r   r   r   r!   r#   r"   r    r$   s               r,   Úgetr5   ¯   s8   € ô. ØØØØØØØØØ)ØØØØôð ó    c               ó2   — t        d| |||||||||	|
|¬«      S )zô
    Sends an `OPTIONS` request.

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

    Note that the `data`, `files`, `json` and `content` parameters are not available
    on this function, as `OPTIONS` requests should not include a request body.
    ÚOPTIONSr0   r3   r4   s               r,   Úoptionsr9   ×   s8   € ô. ØØØØØØØØØ)ØØØØôð r6   c               ó2   — t        d| |||||||||	|
|¬«      S )zí
    Sends a `HEAD` request.

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

    Note that the `data`, `files`, `json` and `content` parameters are not available
    on this function, as `HEAD` requests should not include a request body.
    ÚHEADr0   r3   r4   s               r,   Úheadr<   ÿ   s8   € ô. ØØØØØØØØØ)ØØØØôð r6   ©r   r   r   r   r   r   r   r   r   r   r!   r#   r"   r    r$   c               ó8   — t        d| f|||||||||	|
|||||dœŽS )zK
    Sends a `POST` request.

    **Parameters**: See `httpx.request`.
    ÚPOSTr=   r3   ©r)   r   r   r   r   r   r   r   r   r   r   r!   r#   r"   r    r$   s                   r,   ÚpostrA   '  sK   € ô0 ØØðð ØØØØØØØØØØ)ØØØØò#ð r6   c               ó8   — t        d| f|||||||||	|
|||||dœŽS )zJ
    Sends a `PUT` request.

    **Parameters**: See `httpx.request`.
    ÚPUTr=   r3   r@   s                   r,   ÚputrD   T  sK   € ô0 ØØðð ØØØØØØØØØØ)ØØØØò#ð r6   c               ó8   — t        d| f|||||||||	|
|||||dœŽS )zL
    Sends a `PATCH` request.

    **Parameters**: See `httpx.request`.
    ÚPATCHr=   r3   r@   s                   r,   ÚpatchrG   �  sK   € ô0 ØØðð ØØØØØØØØØØ)ØØØØò#ð r6   c               ó2   — t        d| |||||||||	|
|¬«      S )zñ
    Sends a `DELETE` request.

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

    Note that the `data`, `files`, `json` and `content` parameters are not available
    on this function, as `DELETE` requests should not include a request body.
    ÚDELETEr0   r3   r4   s               r,   ÚdeleterJ   ®  s8   € ô. ØØØØØØØØØ)ØØØØôð r6   )$r(   Ústrr)   r   r   úQueryParamTypes | Noner   úRequestContent | Noner   úRequestData | Noner   úRequestFiles | Noner   útyping.Any | Noner   úHeaderTypes | Noner   úCookieTypes | Noner   úAuthTypes | Noner   úProxyTypes | Noner   úProxiesTypes | Noner    r   r!   Úboolr"   r   r#   úCertTypes | Noner$   rV   Úreturnr   )$r(   rK   r)   r   r   rL   r   rM   r   rN   r   rO   r   rP   r   rQ   r   rR   r   rS   r   rT   r   rU   r    r   r!   rV   r"   r   r#   rW   r$   rV   rX   ztyping.Iterator[Response])r)   r   r   rL   r   rQ   r   rR   r   rS   r   rT   r   rU   r!   rV   r#   rW   r"   r   r    r   r$   rV   rX   r   )"r)   r   r   rM   r   rN   r   rO   r   rP   r   rL   r   rQ   r   rR   r   rS   r   rT   r   rU   r!   rV   r#   rW   r"   r   r    r   r$   rV   rX   r   )"Ú
__future__r   ÚtypingÚ
contextlibr   Ú_clientr   Ú_configr   Ú_modelsr   Ú_typesr	   r
   r   r   r   r   r   r   r   r   r   r   r   r*   r.   r5   r9   r<   rA   rD   rG   rJ   © r6   r,   ú<module>ra      sQ  ðÝ "ã Ý %å Ý +Ý ÷÷ ÷ õ ð* &*Ø%)Ø#Ø!%Ø"Ø"&Ø"&Ø!Ø#Ø#'Ø2Ø"ØØ!Øñ%[
Øð[
à	ð[
ð #ð	[
ð
 #ð[
ð ð[
ð ð[
ð ð[
ð  ð[
ð  ð[
ð ð[
ð ð[
ð !ð[
ð ð[
ð ð[
ð  ð![
ð" ð#[
ð$ ð%[
ð& ó'[
ð| ð
 &*Ø%)Ø#Ø!%Ø"Ø"&Ø"&Ø!Ø#Ø#'Ø2Ø"ØØ!Øñ%3Øð3à	ð3ð #ð	3ð
 #ð3ð ð3ð ð3ð ð3ð  ð3ð  ð3ð ð3ð ð3ð !ð3ð ð3ð ð3ð  ð!3ð" ð#3ð$ ð%3ð& ò'3ó ð3ðr &*Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øñ%Ø	ð%ð #ð%ð  ð	%ð
  ð%ð ð%ð ð%ð !ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ó%ðV &*Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øñ%Ø	ð%ð #ð%ð  ð	%ð
  ð%ð ð%ð ð%ð !ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ó%ðV &*Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øñ%Ø	ð%ð #ð%ð  ð	%ð
  ð%ð ð%ð ð%ð !ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ó%ðV &*Ø#Ø!%Ø"Ø%)Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øñ#*Ø	ð*ð #ð*ð ð	*ð
 ð*ð ð*ð #ð*ð  ð*ð  ð*ð ð*ð ð*ð !ð*ð ð*ð ð*ð ð*ð  ð!*ð" ð#*ð$ ó%*ð` &*Ø#Ø!%Ø"Ø%)Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øñ#*Ø	ð*ð #ð*ð ð	*ð
 ð*ð ð*ð #ð*ð  ð*ð  ð*ð ð*ð ð*ð !ð*ð ð*ð ð*ð ð*ð  ð!*ð" ð#*ð$ ó%*ð` &*Ø#Ø!%Ø"Ø%)Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øñ#*Ø	ð*ð #ð*ð ð	*ð
 ð*ð ð*ð #ð*ð  ð*ð  ð*ð ð*ð ð*ð !ð*ð ð*ð ð*ð ð*ð  ð!*ð" ð#*ð$ ó%*ð` &*Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øñ%Ø	ð%ð #ð%ð  ð	%ð
  ð%ð ð%ð ð%ð !ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ô%r6   