ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/raven/transport/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/raven/transport/__pycache__/http.cpython-311.pyc

�

�܋f��v�dZddlmZddlmZmZddlmZddlm	Z	m
Z
ddlmZddl
mZGd�d	e��Zd
S)z�
raven.transport.http
~~~~~~~~~~~~~~~~~~~~

:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
�)�absolute_import)�string_types�urllib2)�defaults)�APIError�RateLimited)�	Transport)�urlopenc�>�eZdZddgZejdejfd�Zd�ZdS)�
HTTPTransportz	sync+httpz
sync+httpsTc���t|t��rt|��}t|t��rtt|����}||_||_||_dS)N)�
isinstancer�int�bool�timeout�
verify_ssl�ca_certs)�selfrrrs    �K/opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/transport/http.py�__init__zHTTPTransport.__init__s]���g�|�,�,�	#��'�l�l�G��j�,�/�/�	/��c�*�o�o�.�.�J����$��� ��
�
�
�c���tj||���}	t|||j|j|j���}n�#tj$r�}|j�d��}|�	��}|dkrR	t|j�d����}	n#ttf$rd}	YnwxYwt||	���|rt||����d}~wwxYw|S)zH
        Sends a request to a remote webserver using HTTP POST.
        )�headers)�url�datarrrzx-sentry-errori�zretry-afterrN)r�Requestr
rrr�	HTTPErrorr�get�getcoder�
ValueError�	TypeErrorrr)
rrrr�req�response�exc�msg�code�retry_afters
          r�sendzHTTPTransport.sends���o�c�7�3�3�3��	�������?������H�H��� �	�	�	��+�/�/�"2�3�3�C��;�;�=�=�D��s�{�{�$�"%�c�k�o�o�m�&D�&D�"E�"E�K�K��"�I�.�$�$�$�"#�K�K�K�$����!�#�{�3�3�3��
��s�D�)�)�)������	�����s9�#<�C)�4C$�'B(�'C$�(B>�;C$�=B>�>&C$�$C)N)	�__name__�
__module__�__qualname__�schemer�TIMEOUT�	CA_BUNDLErr(�rrrrsO�������<�
(�F�'�/�D�"�,�	!�	!�	!�	!�����rrN)�__doc__�
__future__r�raven.utils.compatrr�
raven.confr�raven.exceptionsrr�raven.transport.baser	�raven.utils.httpr
rr/rr�<module>r7s�����'�&�&�&�&�&�4�4�4�4�4�4�4�4�������2�2�2�2�2�2�2�2�*�*�*�*�*�*�$�$�$�$�$�$�)�)�)�)�)�I�)�)�)�)�)r

Zerion Mini Shell 1.0