o
    ÚtBh  ã                   @   s    d dl mZ G dd„ deƒZdS )é    )ÚHttpCallBackc                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚHttpResponseCatchera  A class used for catching the HttpResponse object from controllers.
    
    This class inherits HttpCallBack and implements the on_after_response
    method to catch the HttpResponse object as returned by the HttpClient
    after a request is executed.

    c                 C   s   d S ©N© )ÚselfÚrequestr   r   úr/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/tests/http_response_catcher.pyÚon_before_request   s   z%HttpResponseCatcher.on_before_requestc                 C   s
   || _ d S r   )Úresponse)r   r
   r   r   r   Úon_after_response   s   
z%HttpResponseCatcher.on_after_responseN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   r   r   r   r   r      s    r   N)Úsquare.http.http_call_backr   r   r   r   r   r   Ú<module>   s   