403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/websockets/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/websockets/__pycache__/uri.cpython-311.pyc
�

�=Xc����ddlmZddlZddlZddlmZmZddlm	Z	ddgZ
ejGd�d����Zd	Z
dd
�ZdS)�)�annotationsN)�Optional�Tuple�)�
exceptions�	parse_uri�WebSocketURIc��eZdZUdZded<ded<ded<ded<ded	<d
Zded<d
Zded
<edd���Zedd���Z	d
S)r	a
    WebSocket URI.

    Attributes:
        secure: :obj:`True` for a ``wss`` URI, :obj:`False` for a ``ws`` URI.
        host: Normalized to lower case.
        port: Always set even if it's the default.
        path: May be empty.
        query: May be empty if the URI doesn't include a query component.
        username: Available when the URI contains `User Information`_.
        password: Available when the URI contains `User Information`_.

    .. _User Information: https://www.rfc-editor.org/rfc/rfc3986.html#section-3.2.1

    �bool�secure�str�host�int�port�path�queryNz
Optional[str]�username�password�returnc�P�|jr|j}nd}|jr
|d|jzz
}|S)N�/�?)rr)�self�
resource_names  �0/usr/lib/python3/dist-packages/websockets/uri.pyrzWebSocketURI.resource_name's;���9�	 � �I�M�M��M��:�	.��S�4�:�-�-�M����Optional[Tuple[str, str]]c�B�|j�dS|j�J�|j|jfS)N)rr)rs r�	user_infozWebSocketURI.user_info1s,���=� ��4��}�(�(�(��
�t�}�-�-r)rr
)rr)
�__name__�
__module__�__qualname__�__doc__�__annotations__rr�propertyrr�rrr	r	
s���������� �L�L�L�
�I�I�I�
�I�I�I�
�I�I�I��J�J�J�"�H�"�"�"�"�"�H�"�"�"�"�
�����X���.�.�.��X�.�.�.rz:/?#[]@!$&'()*+,;=�urir
rc	��tj�|��}|jdvrt	j|d���|j�t	j|d���|jdkrt	j|d���|jdk}|j}|jp|rdnd	}|j	}|j
}|j}|j}|�|�t	j|d
���	|�
d��n�#t$r�|�
d�����}tj�|t"�
��}tj�|t"�
��}|�P|�J�tj�|t"�
��}tj�|t"�
��}YnwxYwt%|||||||��S)z�
    Parse and validate a WebSocket URI.

    Args:
        uri: WebSocket URI.

    Returns:
        WebSocketURI: Parsed WebSocket URI.

    Raises:
        InvalidURI: if ``uri`` isn't a valid WebSocket URI.

    )�ws�wsszscheme isn't ws or wssNzhostname isn't provided�z"fragment identifier is meaninglessr*i��Pz"username provided without password�ascii�idna)�safe)�urllib�parse�urlparse�schemer�
InvalidURI�hostname�fragmentrrrrr�encode�UnicodeEncodeError�decode�quote�DELIMSr	)	r'�parsedrrrrrrrs	         rrr=s����\�
"�
"�3�
'�
'�F�
�}�M�)�)��#�C�)A�B�B�B�
����#�C�)B�C�C�C�
��"����#�C�)M�N�N�N�
�]�e�
#�F��?�D��;�1�&�0�3�3�b�D��;�D��L�E���H���H���� 0��#�C�)M�N�N�N�A��
�
�7�������	A�	A�	A��{�{�6�"�"�)�)�+�+���|�!�!�$�V�!�4�4����"�"�5�v�"�6�6�����'�'�'��|�)�)�(��)�@�@�H��|�)�)�(��)�@�@�H���	A�������d�D�%��8�L�L�Ls�C%�%CF7�6F7)r'r
rr	)�
__future__r�dataclasses�urllib.parser0�typingrrr+r�__all__�	dataclassr	r;rr&rr�<module>rCs���"�"�"�"�"�"���������"�"�"�"�"�"�"�"���������
'��
��(.�(.�(.�(.�(.�(.�(.���(.�X
��/M�/M�/M�/M�/M�/Mr

Youez - 2016 - github.com/yon3zu
LinuXploit