
    )Jf/              3          g d Z ddlmZ ddlmZ ddlmZmZmZm	Z	m
Z
 ddlmZ ddlmZmZ dd	lmZmZ dd
lmZ ddlmZmZ ddlmZmZmZ 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d4dededee         dee
eeef         eeef                  dee         dee         dee         dee         dee	eef                  de
ee	eef         f         de de!dee         d ee          d!ee         d"ee         d#ee         d$ee
eef                  d%ee         d&ee          d'ee         d(ee         d)e d*ee         d+ef2d,Z" ee"d-          Z# ee"d.          Z$ ee"d/          Z% ee"d0          Z& ee"d1          Z' ee"d2          Z( ee"d3          Z)dS )5)SessionAsyncSessionBrowserTyperequestheadgetpostputpatchdeleteoptionsRequestsErrorCookiesHeadersRequestResponse    )partial)BytesIO)CallableDictOptionalTupleUnion   )CurlHttpVersion   )r   CookieTypes)r   r   )r   )r   HeaderTypes)r   r   r   N   Tgzip, deflate, brFmethodurlparamsdatajsonheaderscookiesfilesauthtimeoutallow_redirectsmax_redirectsproxiesverifyrefereraccept_encodingcontent_callbackimpersonatethreaddefault_headerscurl_optionshttp_versiondebug	interfacereturnc                     t          |||          5 }|                    | |||||||||	|
||||||||||          cddd           S # 1 swxY w Y   dS )a  Send an http request.

    Parameters:
        method: http method for the request: GET/POST/PUT/DELETE etc.
        url: url for the requests.
        params: query string for the requests.
        data: form values or binary data to use in body, `Content-Type: application/x-www-form-urlencoded` will be added if a dict is given.
        json: json values to use in body, `Content-Type: application/json` will be added automatically.
        headers: headers to send.
        cookies: cookies to use.
        files: not implemented yet.
        auth: HTTP basic auth, a tuple of (username, password), only basic auth is supported.
        timeout: how many seconds to wait before giving up.
        allow_redirects: whether to allow redirection.
        max_redirects: max redirect counts, default unlimited(-1).
        proxies: dict of proxies to use, format: {"http": proxy_url, "https": proxy_url}.
        verify: whether to verify https certs.
        referer: shortcut for setting referer header.
        accept_encoding: shortcut for setting accept-encoding header.
        content_callback: a callback function to receive response body. `def callback(chunk: bytes):`
        impersonate: which browser version to impersonate.
        thread: work with other thread implementations. choices: eventlet, gevent.
        default_headers: whether to set default browser headers.
        curl_options: extra curl options to use.
        http_version: limiting http version, http2 will be tries by default.
        debug: print extra curl debug info.
        interface: which interface use in request to server.

    Returns:
        A [Response](/api/curl_cffi.requests#curl_cffi.requests.Response) object.
    )r4   r6   r8   )r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r5   r7   r9   N)r   r   )r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   ss                            ^/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/curl_cffi/requests/__init__.pyr   r   "   s    r 
\	G	G	G 
1yy+'+-#+%+  
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
s   *A

AAHEADGETPOSTPUTPATCHDELETEOPTIONS)NNNNNNNr   Tr    NNNr!   NNNNNNFN)*__all__	functoolsr   ior   typingr   r   r   r   r   constr   r(   r   r   modelsr   r   errorsr   r'   r   r   sessionr   r   r   strdictbytesfloatboolintr   r   r   r   r	   r
   r   r        r=   <module>rU      si    &             9 9 9 9 9 9 9 9 9 9 9 9 9 9 # # # # # # ) ) ) ) ) ) ) ) % % % % % % % % ! ! ! ! ! ! ) ) ) ) ) ) ) ) 7 7 7 7 7 7 7 7 7 7 "AE%)%) &*13 "!!%8+/59 &*#'.2#1P
 P
P
	P
 TNP
 5c3hgu<=
>	P

 4.P
 k"P
 k"P
 D>P
 5c?
#P
 5%u--.P
 P
 P
 d^P
 TNP
 c]P
  c]!P
" x(#P
$ %[ 012%P
& SM'P
( d^)P
* 4.+P
, ?+-P
. /P
0 }1P
2 3P
 P
 P
 P
f wwgguwwggu!!	(	#	#
''9
%
%rT   