xL i ddlmZddlZddlmZddlmZmZejddZ ejd d Z d dgZ Gd dZ Gd d Z y) ) annotationsN) TracebackType)RequestResponseT BaseTransport)boundAAsyncBaseTransportcBeZdZddZ d ddZd dZd dZy) r c|SNselfs \/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/httpx/_transports/base.py __enter__zBaseTransport.__enter__s Nc$|jyr)closerexc_type exc_value tracebacks r__exit__zBaseTransport.__exit__s rctd)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.NotImplementedErrorrrequests rhandle_requestzBaseTransport.handle_requests>" >  rcyrrrs rrzBaseTransport.close=s r)rrreturnrNNNrztype[BaseException] | NonerzBaseException | NonerzTracebackType | Noner$Noner!rr$rr$r')__name__ __module__ __qualname__rrr"rrrrr r sH 04*.*. ,((   ! F rcJeZdZddZ d ddZ d dZd dZy) r cK|Swrrrs r __aenter__zAsyncBaseTransport.__aenter__Bs  sNc@K|jd{y7wr)aclosers r __aexit__zAsyncBaseTransport.__aexit__Es kkms c Ktdw)Nz6The 'handle_async_request' method must be implemented.rr s rhandle_async_requestz'AsyncBaseTransport.handle_async_requestMs" D  s c Kywrrrs rr1zAsyncBaseTransport.acloseUs  s)rr r$r r%r&r(r))r*r+r,r/r2r4r1rrrr r AsY 04*.*. ,((        r) __future__rtypingtypesr_modelsrrTypeVarrr __all__r r rrrr<sU" 'FNN3o.FNN323  10 0 f  r