
    b?i?                     N    S SK JrJrJrJrJrJr  S SKrS SKJ	r	   " S S\	5      r
g)    )DictListMappingOptionalTupleUnionN)
HTTPClientc                       \ rS rSrSrSS\4S jjr SS\S\S\\\4   S	\	\
\\\4   \\   4      S
\\\\\\4   4   4
S jjrSrg)RequestsClient   zL
This is the default HTTP client implementation using the requests library.
timeoutc                     Xl         g N_timeout)selfr   s     _/var/www/html/livechat/backend/venv/lib/python3.13/site-packages/resend/http_client_requests.py__init__RequestsClient.__init__   s        Nmethodurlheadersjsonreturnc                      [         R                  " UUUUU R                  S9nUR                  UR                  UR
                  4$ ! [         R                   a  n[        SU 35      UeS nAff = f)N)r   r   r   r   r   zRequest failed: )requestsrequestr   contentstatus_coder   RequestExceptionRuntimeError)r   r   r   r   r   respes          r   r   RequestsClient.request   st    	>##D <<!1!14<<??(( 	> !1!56A=	>s   AA A/A**A/r   )   r   )__name__
__module____qualname____firstlineno____doc__intr   strr   r   r   r   objectr   r   bytesr   __static_attributes__ r   r   r   r      s        BF>> > c"	>
 uT#v+.V<=>> 
uc738,,	-> >r   r   )typingr   r   r   r   r   r   r   resend.http_clientr	   r   r1   r   r   <module>r4      s    > >  )>Z >r   