ok
Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/raven/transport/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/raven/transport/__pycache__/base.cpython-311.pyc |
� �܋f� � �R � d Z ddlmZ dZ G d� de� � Z G d� de� � ZdS ) z� raven.transport.base ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. � )�absolute_importTc � � e Zd ZdZdZg Zd� ZdS )� Transportz� All transport implementations need to subclass this class You must implement a send method (or an async_send method if sub-classing AsyncTransport). Fc � � t �)z You need to override this to do something with the actual data. Usually - this is sending to a server ��NotImplementedError)�self�url�data�headerss �K/opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/transport/base.py�sendzTransport.send s � � "�!� N)�__name__� __module__�__qualname__�__doc__�is_async�schemer � r r r r s9 � � � � � �� � �H� �F�"� "� "� "� "r r c � � e Zd ZdZdZd� ZdS )�AsyncTransportz� All asynchronous transport implementations should subclass this class. You must implement a async_send method. Tc � � t �)z� Override this method for asynchronous transports. Call `success_cb()` if the send succeeds or `error_cb(exception)` if the send fails. r )r r r r � success_cb�error_cbs r � async_sendzAsyncTransport.async_send, s � � "�!r N)r r r r r r r r r r r "