
    h	                        S SK Jr  S SKrS SKJr  SSKJrJr  \R                  " SSS9r	\R                  " S	S
S9r
S
S/r " S S5      r " S S
5      rg)    )annotationsN)TracebackType   )RequestResponseTBaseTransport)boundAAsyncBaseTransportc                  T    \ rS rSrSS jr   S	       S
S jjrSS jrSS jrSrg)r	      c                    U $ N selfs    H/var/www/html/env/lib/python3.13/site-packages/httpx/_transports/base.py	__enter__BaseTransport.__enter__   s        Nc                $    U R                  5         g r   )closer   exc_type	exc_value	tracebacks       r   __exit__BaseTransport.__exit__   s     	

r   c                    [        S5      e)a  
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   requests     r   handle_requestBaseTransport.handle_request   s    > ">
 	
r   c                    g r   r   r   s    r   r   BaseTransport.close=   s    r   r   )r   r   returnr   NNNr   ztype[BaseException] | Noner   zBaseException | Noner   zTracebackType | Noner)   Noner$   r   r)   r   r)   r,   )	__name__
__module____qualname____firstlineno__r   r   r%   r   __static_attributes__r   r   r   r	   r	      sH    
 04*.*.	, ( (	
 
!
Fr   c                  \    \ rS rSrSS jr   S	       S
S jjr    SS jrSS jrSrg)r   A   c                   #    U $ 7fr   r   r   s    r   
__aenter__AsyncBaseTransport.__aenter__B   s
     s   Nc                @   #    U R                  5       I S h  vN   g  N7fr   )acloser   s       r   	__aexit__AsyncBaseTransport.__aexit__E   s      kkms   c                    #    [        S5      e7f)Nz6The 'handle_async_request' method must be implemented.r!   r#   s     r   handle_async_request'AsyncBaseTransport.handle_async_requestM   s      "D
 	
s   c                   #    g 7fr   r   r   s    r   r:   AsyncBaseTransport.acloseU   s     s   r   )r   r   r)   r   r*   r+   r-   r.   )	r/   r0   r1   r2   r7   r;   r>   r:   r3   r   r   r   r   r   A   sY    
 04*.*.	, ( (	
 


 

r   )
__future__r   typingtypesr   _modelsr   r   TypeVarr   r   __all__r	   r   r   r   r   <module>rH      sQ    "   '
NN3o.
NN323
10 0f r   