
    ՟f_                        d dl mZ d dlmZmZmZ ddlmZmZm	Z	m
Z
 ddlmZ dddddeeef   d	eeeef   d
e	deeee   df   dee   de
fdZedddddeeef   d	eeeef   d
e	deeee   df   dee   dee
   fd       Zy)    )contextmanager)IteratorOptionalUnion   )URL
ExtensionsHeaderTypesResponse)ConnectionPoolN)headerscontent
extensionsmethodurlr   r   r   returnc                n    t               5 }|j                  | ||||      cddd       S # 1 sw Y   yxY w)aT  
    Sends an HTTP request, returning the response.

    ```
    response = httpcore.request("GET", "https://www.example.com/")
    ```

    Arguments:
        method: The HTTP method for the request. Typically one of `"GET"`,
            `"OPTIONS"`, `"HEAD"`, `"POST"`, `"PUT"`, `"PATCH"`, or `"DELETE"`.
        url: The URL of the HTTP request. Either as an instance of `httpcore.URL`,
            or as str/bytes.
        headers: The HTTP request headers. Either as a dictionary of str/bytes,
            or as a list of two-tuples of str/bytes.
        content: The content of the request body. Either as bytes,
            or as a bytes iterator.
        extensions: A dictionary of optional extra information included on the request.
            Possible keys include `"timeout"`.

    Returns:
        An instance of `httpcore.Response`.
    r   r   r   r   r   N)r   request)r   r   r   r   r   pools         H/var/www/cvtools/html/venv/lib/python3.12/site-packages/httpcore/_api.pyr   r      sA    < 
	 
T||!  

 
 
s   +4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)ao  
    Sends an HTTP request, returning the response within a content manager.

    ```
    with httpcore.stream("GET", "https://www.example.com/") as response:
        ...
    ```

    When using the `stream()` function, the body of the response will not be
    automatically read. If you want to access the response body you should
    either use `content = response.read()`, or `for chunk in response.iter_content()`.

    Arguments:
        method: The HTTP method for the request. Typically one of `"GET"`,
            `"OPTIONS"`, `"HEAD"`, `"POST"`, `"PUT"`, `"PATCH"`, or `"DELETE"`.
        url: The URL of the HTTP request. Either as an instance of `httpcore.URL`,
            or as str/bytes.
        headers: The HTTP request headers. Either as a dictionary of str/bytes,
            or as a list of two-tuples of str/bytes.
        content: The content of the request body. Either as bytes,
            or as a bytes iterator.
        extensions: A dictionary of optional extra information included on the request.
            Possible keys include `"timeout"`.

    Returns:
        An instance of `httpcore.Response`.
    r   N)r   stream)r   r   r   r   r   r   responses          r   r   r   0   si     H 
	 T[[!  
 	 N	 	 	 s.   AA:A	AA	AAA)
contextlibr   typingr   r   r   _modelsr   r	   r
   r   _sync.connection_poolr   bytesstrr   r        r   <module>r#      s   % , , ; ; 1  37'+%
%*%
	sE3	%
 	%

 5(5/4/0%
 $%
 %
P 
  37'++%*+	sE3	+ 	+
 5(5/4/0+ $+ h+ +r"   