HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/.local/lib/python3.10/site-packages/httpx/_transports/__pycache__/base.cpython-310.pyc
o

���g�	�@stddlmZddlZddlmZddlmZmZejddd�Z	ejd	d
d�Z
d
dgZGdd�d�ZGdd
�d
�Z
dS)
�)�annotationsN)�
TracebackType�)�Request�Response�T�
BaseTransport)�bound�A�AsyncBaseTransportc@�<eZdZddd�Z			dddd�Zddd�Zddd�ZdS)r�selfr�returncCs|S�N��r
rr�I/home/arjun/.local/lib/python3.10/site-packages/httpx/_transports/base.py�	__enter__�zBaseTransport.__enter__N�exc_type�type[BaseException] | None�	exc_value�BaseException | None�	traceback�TracebackType | None�NonecCs|��dSr)�close�r
rrrrrr�__exit__szBaseTransport.__exit__�requestrrcCstd��)aT
        Send a single HTTP request and return a response.

        Developers shouldn't typically ever need to call into this API directly,
        since the Client class provides all the higher level user-facing API
        niceties.

        In order to properly release any network resources, the response
        stream should *either* be consumed immediately, with a call to
        `response.stream.read()`, or else the `handle_request` call should
        be followed with a try/finally block to ensuring the stream is
        always closed.

        Example usage:

            with httpx.HTTPTransport() as transport:
                req = httpx.Request(
                    method=b"GET",
                    url=(b"https", b"www.example.com", 443, b"/"),
                    headers=[(b"Host", b"www.example.com")],
                )
                resp = transport.handle_request(req)
                body = resp.stream.read()
                print(resp.status_code, resp.headers, body)


        Takes a `Request` instance as the only argument.

        Returns a `Response` instance.
        z0The 'handle_request' method must be implemented.��NotImplementedError�r
rrrr�handle_requests�zBaseTransport.handle_requestcCsdSrrrrrrr=rzBaseTransport.close)r
rrr�NNN�rrrrrrrr�rrrr�rr)�__name__�
__module__�__qualname__rrr#rrrrrrs
�
#c@r)rr
r
rc�s�|Srrrrrr�
__aenter__B��zAsyncBaseTransport.__aenter__Nrrrrrrrc�s�|��IdHdSr)�acloserrrr�	__aexit__Es�zAsyncBaseTransport.__aexit__rrrc�s
�td��)Nz6The 'handle_async_request' method must be implemented.r r"rrr�handle_async_requestMs��z'AsyncBaseTransport.handle_async_requestc�s�dSrrrrrrr-Ur,zAsyncBaseTransport.aclose)r
r
rr
r$r%r&r')r(r)r*r+r.r/r-rrrrrAs
�
)�
__future__r�typing�typesr�_modelsrr�TypeVarrr
�__all__rrrrrr�<module>s3