§
     @g€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<d1„¦   «         Zddddddd	dd
ed
d2œd=d3„Zddddddd	dd
ed
d2œd=d4„Zddddddd	dd
ed
d2œd=d5„Zddddddddddd	dd
ed
d6œd>d7„Zddddddddddd	dd
ed
d6œd>d8„Zddddddddddd	dd
ed
d6œd>d9„Z ddddddd	dd
ed
d2œd=d:„Z!dS )?é    )Ú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_envÚmethodÚstrÚurlr   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$   Úreturnr   c               ó    — t          ||
|||||¬¦  «        5 }|                     | ||||||||	|¬¦
  «
        cddd¦  «         S # 1 swxY w Y   dS )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$   ©
r%   r'   r   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                     ú>/var/www/piapp/venv/lib/python3.11/site-packages/httpx/_api.pyr8   r8      sÇ   € õN 
ØØØØØØØð
ñ 
ô 
ð 
ð 
Ø�~Š~ØØØØØØØØØØ-ð ñ 
ô 
ð
ð 
ð 
ð 
ñ 
ô 
ð 
ð 
ð 
ð 
ð 
ð 
øøøð 
ð 
ð 
ð 
ð 
ð 
s   —AÁAÁ
Aútyping.Iterator[Response]c             #  óÞ   K  — t          ||
|||||¬¦  «        5 }|                     | ||||||||	|¬¦
  «
        5 }|V — ddd¦  «         n# 1 swxY w Y   ddd¦  «         dS # 1 swxY w Y   dS )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
    r6   r7   N)r   Ústream)r%   r'   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r9   Úresponses                      r:   r=   r=   x   s+  è è € õ> 
ØØØØØØØð
ñ 
ô 
ð ð 
Ø�]Š]ØØØØØØØØØØ-ð ñ 
ô 
ð 	ð ØˆNˆNˆNð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ðð ð ñ ô ð ð ð ð ð ð ð øøøð ð ð ð ð ð s3   ™ A"¹A
¾A"Á
A	ÁA"ÁA	ÁA"Á"A&Á)A&©r   r   r   r   r   r   r!   r#   r"   r    r$   c               ó:   — 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.
    ÚGETr?   ©r8   ©r'   r   r   r   r   r   r   r!   r#   r"   r    r$   s               r:   ÚgetrD   ¯   sB   € õ. ØØØØØØØØØ)ØØØØðñ ô ð ó    c               ó:   — 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.
    ÚOPTIONSr?   rB   rC   s               r:   ÚoptionsrH   ×   sB   € õ. ØØØØØØØØØ)ØØØØðñ ô ð rE   c               ó:   — 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.
    ÚHEADr?   rB   rC   s               r:   ÚheadrK   ÿ   sB   € õ. ØØØØØØØØØ)ØØØØðñ ô ð rE   ©r   r   r   r   r   r   r   r   r   r   r!   r#   r"   r    r$   c               ó:   — t          d| f|||||||||	|
|||||dœŽS )zK
    Sends a `POST` request.

    **Parameters**: See `httpx.request`.
    ÚPOSTrL   rB   ©r'   r   r   r   r   r   r   r   r   r   r   r!   r#   r"   r    r$   s                   r:   ÚpostrP   '  sU   € õ0 ØØðð ØØØØØØØØØØ)ØØØØð#ð ð ð rE   c               ó:   — t          d| f|||||||||	|
|||||dœŽS )zJ
    Sends a `PUT` request.

    **Parameters**: See `httpx.request`.
    ÚPUTrL   rB   rO   s                   r:   ÚputrS   T  sU   € õ0 ØØðð ØØØØØØØØØØ)ØØØØð#ð ð ð rE   c               ó:   — t          d| f|||||||||	|
|||||dœŽS )zL
    Sends a `PATCH` request.

    **Parameters**: See `httpx.request`.
    ÚPATCHrL   rB   rO   s                   r:   ÚpatchrV   �  sU   € õ0 ØØðð ØØØØØØØØØØ)ØØØØð#ð ð ð rE   c               ó:   — 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.
    ÚDELETEr?   rB   rC   s               r:   ÚdeleterY   ®  sB   € õ. ØØØØØØØØØ)ØØØØðñ ô ð rE   )$r%   r&   r'   r   r   r(   r   r)   r   r*   r   r+   r   r,   r   r-   r   r.   r   r/   r   r0   r   r1   r    r   r!   r2   r"   r   r#   r3   r$   r2   r4   r   )$r%   r&   r'   r   r   r(   r   r)   r   r*   r   r+   r   r,   r   r-   r   r.   r   r/   r   r0   r   r1   r    r   r!   r2   r"   r   r#   r3   r$   r2   r4   r;   )r'   r   r   r(   r   r-   r   r.   r   r/   r   r0   r   r1   r!   r2   r#   r3   r"   r   r    r   r$   r2   r4   r   )"r'   r   r   r)   r   r*   r   r+   r   r,   r   r(   r   r-   r   r.   r   r/   r   r0   r   r1   r!   r2   r#   r3   r"   r   r    r   r$   r2   r4   r   )"Ú
__future__r   ÚtypingÚ
contextlibr   Ú_clientr   Ú_configr   Ú_modelsr   Ú_typesr	   r
   r   r   r   r   r   r   r   r   r   r   r   r8   r=   rD   rH   rK   rP   rS   rV   rY   © rE   r:   ú<module>rb      s§  ðØ "Ð "Ð "Ð "Ð "Ð "à €€€Ø %Ð %Ð %Ð %Ð %Ð %à Ð Ð Ð Ð Ð Ø +Ð +Ð +Ð +Ð +Ð +Ø Ð Ð Ð Ð Ð ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð* &*Ø%)Ø#Ø!%Ø"Ø"&Ø"&Ø!Ø#Ø#'Ø2Ø"ØØ!Øð%[
ð [
ð [
ð [
ð [
ð [
ð| ð
 &*Ø%)Ø#Ø!%Ø"Ø"&Ø"&Ø!Ø#Ø#'Ø2Ø"ØØ!Øð%3ð 3ð 3ð 3ð 3ñ „ð3ðr &*Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øð%ð %ð %ð %ð %ð %ðV &*Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øð%ð %ð %ð %ð %ð %ðV &*Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øð%ð %ð %ð %ð %ð %ðV &*Ø#Ø!%Ø"Ø%)Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øð#*ð *ð *ð *ð *ð *ð` &*Ø#Ø!%Ø"Ø%)Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øð#*ð *ð *ð *ð *ð *ð` &*Ø#Ø!%Ø"Ø%)Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øð#*ð *ð *ð *ð *ð *ð` &*Ø"&Ø"&Ø!Ø#Ø#'Ø"Ø!ØØ2Øð%ð %ð %ð %ð %ð %ð %ð %rE   