
    zi	                         d dl Z d dlmZ ddlmZmZ  e j        dd          Z e j        dd	          Z G d
 d          Z	 G d d	          Z
dS )    N)TracebackType   )RequestResponseTBaseTransport)boundAAsyncBaseTransportc            	           e Zd ZdedefdZ	 	 	 ddej        ej        e                  dej        e         dej        e	         ddfdZ
d	edefd
ZddZdS )r   selfreturnc                     | S N r   s    a/var/www/tmov.alphamb/tmov_inventario/venv/lib/python3.11/site-packages/httpx/_transports/base.py	__enter__zBaseTransport.__enter__   s        Nexc_type	exc_value	tracebackc                 .    |                                   d S r   )closer   r   r   r   s       r   __exit__zBaseTransport.__exit__   s     	

r   requestc                      t          d          )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   r   s     r   handle_requestzBaseTransport.handle_request   s    > ">
 
 	
r   c                     d S r   r   r   s    r   r   zBaseTransport.close9   s    r   NNNr   N)__name__
__module____qualname__r   r   typingOptionalTypeBaseExceptionr   r   r   r   r"   r   r   r   r   r   r   
   s         a    
 AE4848	 /&+m"<= ?=1 ?=1	
 
   !
g !
( !
 !
 !
 !
F     r   c            	           e Zd ZdedefdZ	 	 	 ddej        ej        e                  dej        e         dej        e	         ddfdZ
d	edefd
ZddZdS )r   r   r   c                 
   K   | S r   r   r   s    r   
__aenter__zAsyncBaseTransport.__aenter__>   s      r   Nr   r   r   c                 >   K   |                                   d {V  d S r   )acloser   s       r   	__aexit__zAsyncBaseTransport.__aexit__A   s.       kkmmr   r   c                 $   K   t          d          )Nz6The 'handle_async_request' method must be implemented.r   r!   s     r   handle_async_requestz'AsyncBaseTransport.handle_async_requestI   s       "D
 
 	
r   c                 
   K   d S r   r   r   s    r   r1   zAsyncBaseTransport.acloseQ   s      r   r$   r%   )r&   r'   r(   r
   r/   r)   r*   r+   r,   r   r2   r   r   r4   r1   r   r   r   r   r   =   s        q Q    
 AE4848	 /&+m"<= ?=1 ?=1	
 
   

 

 
 
 
     r   )r)   typesr   _modelsr   r   TypeVarr   r
   r   r   r   r   r   <module>r9      s           ' ' ' ' ' ' ' 'FN3o...FN323330 0 0 0 0 0 0 0f         r   