
    Bfi                     J    d dl mZmZmZmZ d dlmZ d dlmZ  G d de	      Z
y)    )print_functionunicode_literalsabsolute_importdivision)urlfetch)process_responsec                       e Zd ZdZd Zd Zy)
GAEBackendzf
    Adapter for the URLFetch Module. Necessary for using this library with
    Google App Engine
    c                      || _         || _        y )N)clientoptions)selfr   r   s      \/var/www/html/BankruptcyAI-uat/bankruptcy-ai/venv/lib/python3.12/site-packages/pusher/gae.py__init__zGAEBackend.__init__   s        c           	         t        j                  d|j                  |j                  |j                  |j
                  | j                  j                  d| j                  }t        |j                  |j                        S )N)urlheadersmethodpayloaddeadline )r   fetchr   r   r   bodyr   timeoutr   r   status_codecontent)r   requestresps      r   send_requestzGAEBackend.send_request   se    ~~ OO>>LL[[(( ll   0 0$,,??r   N)__name__
__module____qualname____doc__r   r    r   r   r   r
   r
      s    
	@r   r
   N)
__future__r   r   r   r   google.appengine.apir   pusher.httpr   objectr
   r   r   r   <module>r)      s%     * (@ @r   