\Uz 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)selfurldataheaderss f/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/raven/transport/base.pysendzTransport.send s
"! N)__name__
__module____qualname____doc__is_asyncschemer 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_cberror_cbs r
async_sendzAsyncTransport.async_send, s
"!r N)r r r r r r r r r
r r " s4 H" " " " "r r N)r
__future__r has_newstyle_transportsobjectr r r r r