Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
base.cpython-313.pyc61 linesDownload Raw Back to __pycache__
1�

2��j�	���SSKJr SSKrSSKJr SSKJrJr \R"SSS9r	\R"S	S3S9r4S5S/r"SS5r"SS65r
g)
�)�annotationsN)�
TracebackType�)�Request�Response�T�
BaseTransport)�bound�A�AsyncBaseTransportc�T�\rSrSrSSjrS	S7SjjrSSjrSSjrSrg)
r	�c��U$�N���selfs �HD:\code\apps\devtools\python\Lib\site-packages\httpx/_transports/base.py�	__enter__�BaseTransport.__enter__s����Nc�$�UR5 gr)�close�r�exc_type�	exc_value�	tracebacks    r�__exit__�BaseTransport.__exit__s
��	
�8�9�rc��[S5e)a�10Send a single HTTP request and return a response.11 12Developers shouldn't typically ever need to call into this API directly,13since the Client class provides all the higher level user-facing API14niceties.15 16In order to properly release any network resources, the response17stream should *either* be consumed immediately, with a call to18`response.stream.read()`, or else the `handle_request` call should19be followed with a try/finally block to ensuring the stream is20always closed.21 22Example usage:23 24    with httpx.HTTPTransport() as transport:25        req = httpx.Request(26            method=b"GET",27            url=(b"https", b"www.example.com", 443, b"/"),28            headers=[(b"Host", b"www.example.com")],29        )30        resp = transport.handle_request(req)31        body = resp.stream.read()32        print(resp.status_code, resp.headers, body)33 34 35Takes a `Request` instance as the only argument.36 37Returns a `Response` instance.38z0The 'handle_request' method must be implemented.��NotImplementedError�r�requests  r�handle_request�BaseTransport.handle_requests��>"�>�39�	40rc��grrrs rr�BaseTransport.close=s��rr)rr�returnr�NNN�rztype[BaseException] | NonerzBaseException | NonerzTracebackType | Noner)�None�r$rr)r�r)r,)	�__name__�41__module__�__qualname__�__firstlineno__rrr%r�__static_attributes__rrrr	r	sH���4204�*.�*.�	�,��(��(�	�4344��!45�F
rc�\�\rSrSrSSjrS	S46SjjrSSjrSSjrSrg)
r�Ac��# �U$7frrrs r�47__aenter__�AsyncBaseTransport.__aenter__Bs48�����s�Nc��@# �UR5IShv�N gN7fr)�aclosers    r�	__aexit__�AsyncBaseTransport.__aexit__Es����k�k�m���s���c�� # �[S5e7f)Nz6The 'handle_async_request' method must be implemented.r!r#s  r�handle_async_request�'AsyncBaseTransport.handle_async_requestMs���"�D�49�	50�s�c��# �g7frrrs rr:�AsyncBaseTransport.acloseUs����s�r)rrr)rr*r+r-r.)	r/r0r1r2r7r;r>r:r3rrrrrAsY���5104�*.�*.�	�,��(��(�	�5253��54��55�56�57�
r)�58__future__r�typing�typesr�_modelsrr�TypeVarrr�__all__r	rrrr�<module>rHsQ��"�
��'�59�N�N�3�o�.��60�N�N�3�2�3����611��0
�0
�f
�
r
codekingpro/portable-devtools · Team Ai