B Y@s8dZddlmZdZGdddeZGdddeZdS) 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@s eZdZdZdZgZddZdS) Transportz All transport implementations need to subclass this class You must implement a send method (or an async_send method if sub-classing AsyncTransport). FcCstdS)z You need to override this to do something with the actual data. Usually - this is sending to a server N)NotImplementedError)selfurldataheadersr E/opt/alt/python37/lib/python3.7/site-packages/raven/transport/base.pysendszTransport.sendN)__name__ __module__ __qualname____doc__is_asyncschemer r r r r rsrc@seZdZdZdZddZdS)AsyncTransportz All asynchronous transport implementations should subclass this class. You must implement a async_send method. TcCstdS)z Override this method for asynchronous transports. Call `success_cb()` if the send succeeds or `error_cb(exception)` if the send fails. N)r)rrrrZ success_cbZerror_cbr r r async_send,szAsyncTransport.async_sendN)r r rrrrr r r r r"srN)r __future__rZhas_newstyle_transportsobjectrrr r r r s