| Server IP : 138.197.107.151 / Your IP : 216.73.217.120 Web Server : Apache/2.4.58 (Ubuntu) System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : wpbetasites_mrakzqskir ( 1022) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /proc/3492927/root/lib/python3/dist-packages/wsproto/__pycache__/ |
Upload File : |
�
21c � � � d Z ddlZddlZddlZddlmZmZmZmZ ddl m
Z ddlm
Z
ddlm
Z
dZ G d� d e� Z G d
� de� Z G d� d
e� Zdee
ef deeef fd�Zdedee fd�Zdefd�Zdedefd�Zy)za
wsproto/utilities
~~~~~~~~~~~~~~~~~
Utility functions that do not belong in a separate module.
� N)�Dict�List�Optional�Union)�Headers� )�Events$ 258EAFA5-E914-47DA-95CA-C5AB0DC85B11c � � e Zd Zy)�
ProtocolErrorN)�__name__�
__module__�__qualname__� � �3/usr/lib/python3/dist-packages/wsproto/utilities.pyr r s � �r r c � � e Zd ZdZy)�LocalProtocolErrorz�Indicates an error due to local/programming errors.
This is raised when the connection is asked to do something that
is either incompatible with the state or the websocket standard.
N)r r
r �__doc__r r r r r s � �� r r c �8 � � e Zd ZdZddedee ddf� fd�
Z� xZS )�RemoteProtocolErroram Indicates an error due to the remote's actions.
This is raised when processing the bytes from the remote if the
remote has sent data that is incompatible with the websocket
standard.
.. attribute:: event_hint
This is a suggested wsproto Event to send to the client based
on the error. It could be None if no hint is available.
N�message�
event_hint�returnc �2 �� || _ t �| � |� y �N)r �super�__init__)�selfr r � __class__s �r r zRemoteProtocolError.__init__2 s �� �$���
����!r r ) r r
r r �strr r r �
__classcell__)r s @r r r $ s+ �� ��"�� "��%�� "�D� "� "r r �h11_headersr c � � i }| D ]&