Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python35
/
lib
/
python3.5
/
site-packages
/
raven
/
transport
/
__pycache__
/
File Content:
base.cpython-35.pyc
��Y� � @ sL d Z d d l m Z d Z Gd d � d e � Z Gd d � d e � Z d S) 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. e Z d Z d Z d Z g Z d d � Z d S)� 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 C s t � d S)z You need to override this to do something with the actual data. Usually - this is sending to a server N)�NotImplementedError)�self�url�data�headers� r �/base.py�send s zTransport.sendN)�__name__� __module__�__qualname__�__doc__�is_async�schemer r r r r r s r c @ s( e Z d Z d Z d Z d d � Z d S)�AsyncTransportz� All asynchronous transport implementations should subclass this class. You must implement a async_send method. Tc C s t � d S)z� Override this method for asynchronous transports. Call `success_cb()` if the send succeeds or `error_cb(exception)` if the send fails. N)r )r r r r Z success_cbZerror_cbr r r � async_send, s zAsyncTransport.async_sendN)r r r r r r r r r r r "