← back to Atmos Game

assets/gen/.venv/lib/python3.12/site-packages/httpcore/__pycache__/_api.cpython-312.pyc

82 lines

�

c�bjJ���ddlmZddlZddlZddlmZmZmZmZddl	m
Z
dddd�											d	d�Zejdddd�											d
d��Z
y)�)�annotationsN�)�URL�
Extensions�HeaderTypes�Response)�ConnectionPool)�headers�content�
extensionsc�n�t�5}|j|||||��cddd�S#1swYyxYw)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`.
    ��method�urlr
rrN)r	�request)rrr
rr�pools      �d/Users/macstudio3/Projects/atmos-game/assets/gen/.venv/lib/python3.12/site-packages/httpcore/_api.pyrr
s8��<
�	�T��|�|�����!��
�
�	�	�s�+�4c#�K�t�5}|j|||||��5}|��ddd�ddd�y#1swY�xYw#1swYyxYw�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`.
    rN)r	�stream)rrr
rrr�responses       rrr2s[����H
�	�T�
�[�[�����!��
���N�
�
�	�
�
��
�	�s.�A�A�:�A�	A�A	�A�A�A)r�bytes | strr�URL | bytes | strr
rr�%bytes | typing.Iterator[bytes] | Noner�Extensions | None�returnr)rrrrr
rrrrrrztyping.Iterator[Response])�
__future__r�
contextlib�typing�_modelsrrrr�_sync.connection_poolr	r�contextmanagerr��r�<module>r$s���"��
�;�;�1� �59�$(�
%
��%
�	�%
��	%
�
3�%
�"�
%
��%
�P���
 �59�$(�
+��+�	�+��	+�
3�+�"�
+��+��+r#