403Webshell
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 :  /lib/python3/dist-packages/h11/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/h11/tests/__pycache__/test_receivebuffer.cpython-312.pyc
�

t0c~
�	��ddlZddlmZddlZddlmZdd�Zejjdejdd	�
�ejdd�
�ejd
d�
�g�dee
ddfd��Zy)�N)�Tuple�)�
ReceiveBuffer�returnc���t�}|rJ�t|�dk(sJ�t|�dk(sJ�|dz
}|sJ�t|�dk(sJ�t|�dk(sJ�t|�dk(sJ�|jd�dk(sJ�|sJ�t|�dk(sJ�t|�dk(sJ�t|�dk(sJ�|jd	�dk(sJ�t|�dk(sJ�|jd	��J�|rJ�|d
z
}|j	�dk(sJ�t|�dk(sJ�|j	�dk(sJ�t|�dk(sJ�|d
z
}|j	��J�t|�d
k(sJ�|dz
}|j	��J�t|�dk(sJ�|dz
}|j	�dk(sJ�|j	�dk(sJ�|j	��J�t|�dk(sJ�|dz
}|j�}|gd�k(sJ�t|�dk(sJ�|j��J�|dz
}|j��J�|jd�dk(sJ�|rJ�|dz
}|j�gk(sJ�t|�dk(sJ�y)Nr��123�rs12��3�
s123
456
789
s	123
456
s789
s12
s345

s12
345

s

6789aaa123
s	12
345

s6789aaa123
s123
a: b
foo:bar

trailing)r	sa: bsfoo:barstrailings

�dstrailing

s

trailing)r�len�bytes�maybe_extract_at_most�maybe_extract_next_line�maybe_extract_lines)�b�liness  �>/usr/lib/python3/dist-packages/h11/tests/test_receivebuffer.py�test_receivebufferr	s�����A��L�5��q�6�Q�;��;���8�s�?��?���K�A��H�1��q�6�Q�;��;���8�v������8�v�����"�"�1�%��.�.�.��H�1��q�6�Q�;��;���8�t������8�t�����"�"�2�&�$�.�.�.���8�s�?��?��"�"�2�&�.�.�.��L�5��	��A��$�$�&�/�9�9�9���8�z�!�!�!��$�$�&�*�4�4�4���8�s�?��?���L�A��$�$�&�.�.�.���8�w������O�A��$�$�&�.�.�.���8�~�%�%�%��	��A��$�$�&�*:�:�:�:��$�$�&�*;�;�;�;��$�$�&�.�.�.���8�s�?��?��	2�2�A�
�!�!�#�E��1�1�1�1���8�{�"�"�"�� � �"�*�*�*���N�A�� � �"�*�*�*��"�"�3�'�+<�<�<�<��L�5����A�� � �"�b�(�(�(���8�{�"�"�"r�data)sHTTP/1.1 200 OK
�Content-type: text/plain
sConnection: close
s
�	Some body�with_crlf_delimiter)�id)�HTTP/1.1 200 OK
sContent-type: text/plain
�Connection: close
�
r�with_lf_only_delimiter)rrrrr�with_mixed_crlf_and_lfc��t�}|D]}||z
}�	|j�}|gd�k(sJ�t|�dk(sJ�y)N)sHTTP/1.1 200 OKsContent-type: text/plainsConnection: closer)rrr)rr�liners    r�(test_receivebuffer_for_invalid_delimiterr$Ws_��H	��A����	�T�	���
�!�!�#�E������
��8�|�#�#�#r)rN)�re�typingr�pytest�_receivebufferrr�mark�parametrize�paramrr$�rr�<module>r-s���	��
�*�K#�\�����
�����
�%�		
�	����
�(�		
�	����
�(�		
�+�"�F
$�5��<�
$�D�
$�G"�F
$r

Youez - 2016 - github.com/yon3zu
LinuXploit