
    hJ                        S SK Jr  S SKrS SKrSSKJrJrJrJr  SSK	J
r
  SSSS.           S	S jjr\R                  SSSS.           S
S jj5       rg)    )annotationsN   )URL
ExtensionsHeaderTypesResponse)ConnectionPool)headerscontent
extensionsc          	     r    [        5        nUR                  U UUUUS9sSSS5        $ ! , (       d  f       g= f)a  
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`.
methodurlr
   r   r   N)r	   request)r   r   r
   r   r   pools         ?/var/www/html/env/lib/python3.13/site-packages/httpcore/_api.pyr   r   
   s8    < 
	T||!  
 
		s   (
6c          	   #     #    [        5        nUR                  U UUUUS9 nUv   SSS5        SSS5        g! , (       d  f       N= f! , (       d  f       g= f7f)a  
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   sZ     H 
	T[[!  
 N
 
	
 
 
	s/   AA7A	A
A	A
AA)r   bytes | strr   URL | bytes | strr
   r   r   %bytes | typing.Iterator[bytes] | Noner   Extensions | Nonereturnr   )r   r   r   r   r
   r   r   r   r   r   r   ztyping.Iterator[Response])
__future__r   
contextlibtyping_modelsr   r   r   r   _sync.connection_poolr	   r   contextmanagerr        r   <module>r$      s    "   ; ; 1  59$(%
%
	%
 	%

 3%
 "%
 %
P 
  59$(++	+ 	+
 3+ "+ + +r#   