
    MhJ                        d dl mZ d dlZd dlZddlmZmZmZmZ ddl	m
Z
 ddddddZej        dddddd            ZdS )    )annotationsN   )URL
ExtensionsHeaderTypesResponse)ConnectionPool)headerscontent
extensionsmethodbytes | strurlURL | bytes | strr
   r   r   %bytes | typing.Iterator[bytes] | Noner   Extensions | Nonereturnr   c                   t                      5 }|                    | ||||          cddd           S # 1 swxY w Y   dS )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         M/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/httpcore/_api.pyr   r   
   s    < 
		 
T||!  
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
s   6::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 )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   2   s      H 
		 T[[!  
 
 	 NNN	 	 	 	 	 	 	 	 	 	 	 	 	 	 	                 s1   A=AA	AA	AAA)r   r   r   r   r
   r   r   r   r   r   r   r   )r   r   r   r   r
   r   r   r   r   r   r   r   )
__future__r   
contextlibtyping_modelsr   r   r   r   _sync.connection_poolr	   r   contextmanagerr        r   <module>r%      s    " " " " " "      ; ; ; ; ; ; ; ; ; ; ; ; 1 1 1 1 1 1  59$(%
 %
 %
 %
 %
 %
P 
  59$(+ + + + + + + +r$   