
    >OOf?              @          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
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 ddlmZmZ ddlmZmZ ddlmZmZmZm Z m!Z! ddl"m#Z#m$Z$m%Z% 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d6de&de&de	eeee
f      de	eee&e&f   ee
   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
e&e&f      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&ee'ge&f   f   d'e	e(   d(e	e   d)e*d*e	e&   d+e	e   d,e	ee&e
e&e&f   f      d-ef<d.Z, ee,d/      Z- ee,d0      Z. ee,d1      Z/ ee,d2      Z0 ee,d3      Z1 ee,d4      Z2 ee,d5      Z3y)7)SessionAsyncSessionBrowserType
CurlWsFlagrequestheadgetpostputpatchdeleteoptionsRequestsErrorCookiesHeadersRequestResponse	WebSocketWebSocketErrorWsCloseCode    )partial)BytesIO)CallableDictListOptionalTupleUnion   )CurlHttpVersionr   )CurlMime   )r   CookieTypes)r   )r   HeaderTypes)r   r   )r   r   	ProxySpecr   
ThreadType)r   r   r   Nmethodurlparamsdatajsonheaderscookiesfilesauthtimeoutallow_redirectsmax_redirectsproxiesproxy
proxy_authverifyrefereraccept_encodingcontent_callbackimpersonatethreaddefault_headersdefault_encodingcurl_optionshttp_versiondebug	interface	multipartcertreturnc                     t        |||      5 }|j                  | |||||||||	|
|||||||||||||||      cddd       S # 1 sw Y   yxY w)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 supported, use ``multipart`` instead.
        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}``.
        proxy: proxy to use, format: "http://user@pass:proxy_url". Cannot be used with the above parameter.
        proxy_auth: HTTP basic auth for proxy, a tuple of (username, password).
        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) -> None:``
        impersonate: which browser version to impersonate.
        thread: work with other thread implementations. choices: eventlet, gevent.
        default_headers: whether to set default browser headers.
        default_encoding: encoding for decoding response content if charset is not found in headers.
                Defaults to "utf-8". Can be set to a callable for automatic detection.
        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.
        multipart: upload files using the multipart format, see.

    Returns:
        A ``Response`` object.
    )r;   r>   r@   )r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r<   r=   r?   rA   rB   rC   N)r   r   )r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   ss                                 \/var/www/premiumrankchecker/venv/lib/python3.12/site-packages/curl_cffi/requests/__init__.pyr   r   &   s    F 
\	G 
1yy+'!+-#+-%5  

 
 
s   +AAHEADGETPOSTPUTPATCHDELETEOPTIONS)NNNNNNN   TNNNNNzgzip, deflate, brNNNNzutf-8NNFNNN)4__all__	functoolsr   ior   typingr   r   r   r   r   r   constr    r   curlr!   r-   r   r#   errorsr   r,   r   r$   modelsr   r   sessionr   r   r%   r   r&   
websocketsr   r   r   strbytesdictfloatboolintr   r   r   r	   r
   r   r   r        rG   <module>rc      s  .   ? ? /  ) ! ) % N N > > 26NR%)%) &*13 #',0!!%8+/59#'&*;B#'.2#$(26;_
_
	_
 U4u,-._
 5c3hec7EIJ
K	_

 4._
 k"_
 k"_
 D>_
 5c?
#_
 5%u--._
 _
 _
 i _
 C=_
 sCx)_
  TN!_
" c]#_
$ c]%_
& x('_
( %[ 012)_
* Z +_
, d^-_
. C5'3,!778/_
0 4.1_
2 ?+3_
4 5_
6 }7_
8 !9_
: 5eCHo-.
/;_
< =_
D wguwgu!	(	#
'9
%rb   