
    4P@i5              '          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edede j0                  e   de j0                  e   de j0                  e   de j0                  e   de j0                  e j2                     de j0                  e   de j0                  e   de j0                  e
   de j0                  e   de j0                  e   dededede j0                  e   dedef$dZeddddddddddedd	dd	d
dedede j0                  e   de j0                  e   de j0                  e   de j0                  e   de j0                  e j2                     de j0                  e   de j0                  e   de j0                  e
   de j0                  e   de j0                  e   dededede j0                  e   dede j8                  e   f$d       Zddddddddd	ed	ddede j0                  e   de j0                  e   de j0                  e   de j0                  e
   de j0                  e   de j0                  e   dede j0                  e   dedededefd Zddddddddd	ed	ddede j0                  e   de j0                  e   de j0                  e   de j0                  e
   de j0                  e   de j0                  e   dede j0                  e   dedededefd!Zddddddddd	ed	ddede j0                  e   de j0                  e   de j0                  e   de j0                  e
   de j0                  e   de j0                  e   dede j0                  e   dedededefd"Z ddddddddddddd	ed	d#dede j0                  e   de j0                  e   de j0                  e   de j0                  e j2                     de j0                  e   de j0                  e   de j0                  e   de j0                  e
   de j0                  e   de j0                  e   dede j0                  e   dedededef"d$Z!ddddddddddddd	ed	d#dede j0                  e   de j0                  e   de j0                  e   de j0                  e j2                     de j0                  e   de j0                  e   de j0                  e   de j0                  e
   de j0                  e   de j0                  e   dede j0                  e   dedededef"d%Z"ddddddddddddd	ed	d#dede j0                  e   de j0                  e   de j0                  e   de j0                  e j2                     de j0                  e   de j0                  e   de j0                  e   de j0                  e
   de j0                  e   de j0                  e   dede j0                  e   dedededef"d&Z#ddddddddd	ed	ddede j0                  e   de j0                  e   de j0                  e   de j0                  e
   de j0                  e   de j0                  e   dede j0                  e   dedededefd'Z$y)(    N)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urlr   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   returnc                    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#   
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                     T/home/www/lebenam.kofcorporation.com/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.   v   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   R  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   )%typing
contextlibr   _clientr   _configr   _modelsr   _typesr   r	   r
   r   r   r   r   r   r   r   r   r   r   strOptionalAnyboolr*   Iteratorr.   r5   r9   r<   rA   rD   rG   rJ    r6   r,   <module>rW      sV
    %  +    * 04/3)-+/(,,0,0'+)--12"'+%[
[
	[
 OOO,	[

 __^,[
 //+
&[
 ??<([
 //&**
%[
 __[)[
 __[)[
 //)
$[
 ??:&[
 __\*[
 [
 [
  ![
" //)
$#[
$ %[
& '[
| 
 04/3)-+/(,,0,0'+)--12"'+%33	3 OOO,	3
 __^,3 //+
&3 ??<(3 //&**
%3 __[)3 __[)3 //)
$3 ??:&3 __\*3 3 3  !3" //)
$#3$ %3& __X'3 3r 04,0,0'+)--1"'+2%	% OOO,% __[)	%
 __[)% //)
$% ??:&% __\*% % //)
$% % % % %V 04,0,0'+)--1"'+2%	% OOO,% __[)	%
 __[)% //)
$% ??:&% __\*% % //)
$% % % % %V 04,0,0'+)--1"'+2%	% OOO,% __[)	%
 __[)% //)
$% ??:&% __\*% % //)
$% % % % %V 04)-+/(,/3,0,0'+)--1"'+2#*	* __^,* //+
&	*
 ??<(* //&**
%* OOO,* __[)* __[)* //)
$* ??:&* __\** * //)
$* *  !*" #*$ %*` 04)-+/(,/3,0,0'+)--1"'+2#*	* __^,* //+
&	*
 ??<(* //&**
%* OOO,* __[)* __[)* //)
$* ??:&* __\** * //)
$* *  !*" #*$ %*` 04)-+/(,/3,0,0'+)--1"'+2#*	* __^,* //+
&	*
 ??<(* //&**
%* OOO,* __[)* __[)* //)
$* ??:&* __\** * //)
$* *  !*" #*$ %*` 04,0,0'+)--1"'+2%	% OOO,% __[)	%
 __[)% //)
$% ??:&% __\*% % //)
$% % % % %r6   