Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
events.cpython-313.pyc45 linesDownload Raw Back to __pycache__
1�

2��j�����%SrSSKrSSKrSSKJr SSKJr SSKJr SSKJr SSKJr SSK	J3r4 SS	KJr SS5K
Jr "SS5r"S
S\5r\"SS\55r\"SS\55r"SS\5r"SS\5r0r\\R.\\4\S'\"SS9"SS\55r\"SS9"SS\55r\"S5r\"SS \\\55r\"S!S"\55rg)#z�6When IO actions occur at the proxy server, they are passed down to layers as events.7Events represent the only way for layers to receive new data from sockets.8The counterpart to events are commands.9�N)�	dataclass)�is_dataclass)�Any)�Generic)�TypeVar)�flow)�10Connection)�commandsc��\rSrSrSrSrSrg)�Event�z11Base class for all events.12c�N�[U5RSUR<S3$)N�(�))�type�__name__�__dict__��selfs �\D:\code\apps\devtools\python\user_packages\Python313\site-packages\mitmproxy/proxy/events.py�__repr__�Event.__repr__s%���t�*�%�%�&�a��
�
�'8��:�:��N)r�13__module__�__qualname__�__firstlineno__�__doc__r�__static_attributes__rrrrrs���;rrc��\rSrSrSrSrg)�Start�zY14Every layer initially receives a start event.15This is useful to emit events on startup.16rN�rrrrrrrrrr!r!s��rr!c�$�\rSrSr%Sr\\S'Srg)�ConnectionEvent�$z%17All events involving connection IO.18�19connectionrN)rrrrrr	�__annotations__rrrrr%r%$s����rr%c�*�\rSrSr%Sr\\S'SrSrg)�DataReceived�-z20Remote has sent some data.21�datac��[UR5RR5nSUSUR<S3$)Nz
DataReceived(�, r)rr'r�lowerr,)r�targets  rr�DataReceived.__repr__5s8���d�o�o�&�/�/�5�5�7���v�h�b����
�Q�7�7rrN)	rrrrr�bytesr(rrrrrr*r*-s����K�8rr*c��\rSrSrSrSrg)�ConnectionClosed�:z!22Remote has closed a connection.23rNr#rrrr4r4:s��rr4c�b^�\rSrSr%Sr\R\S'\\S'U4Sjr	Sr24SrSrU=r
$)	�CommandCompleted�@z}25Emitted when a command has been finished, e.g.26when the master has replied or when we have established a server connection.27�command�replyc�n>�U[La[S5e[U5(de[TU]U5$)Nz2CommandCompleted may not be instantiated directly.)r7�	TypeErrorr�super�__new__)�cls�args�kwargs�	__class__s   �rr>�CommandCompleted.__new__Is8����"�"��P�Q�Q��C� � � � ��w��s�#�#rc��[R"U5RSS5n[U[5=(a3 [U[R5=(a U[RLnU(d[R"US3[5 U[;a-[Un[R"SUSUSU3[5 U[U'g)Nr9z. needs a properly annotated command attribute.zTwo conflicting subclasses for z: z and )�typing�get_type_hints�get�28isinstancer�29issubclassr30�Command�warnings�warn�RuntimeWarning�command_reply_subclasses)r?rA�command_cls�valid_command_subclass�others     r�__init_subclass__�"CommandCompleted.__init_subclass__Os����+�+�C�0�4�4�Y��E���{�D�)�
4��;��(8�(8�9�
4��8�#3�#3�3�	�31&��M�M��%�E�F��
��2�2�,�[�9�E��M�M�1�+��b���U�5�'�R��
�14� ��-rc�@�SUR<SUR<S3$)NzReply(r.r)r9r:rs rr�CommandCompleted.__repr__cs ������'�r�$�*�*��q�9�9rr)rrrrrr32rJr(rr>rRrr�
__classcell__)rBs@rr7r7@s/����33�
�
���J�$�4�(:�:rr7rNF)�reprc�D�\rSrSr%\R34\S'\S-\S'Srg)�OpenConnectionCompleted�jr9Nr:r)	rrrrr35�OpenConnectionr(�strrrrrrYrYjs��
�
$�
$�$���:��rrYc�B�\rSrSr%\R36\S'SrS\S'Srg)�
HookCompleted�qr9Nr:r)	rrrrr37�	StartHookr(r:rrrrr^r^qs��
�
�
���E�4�rr^�Tc�B�\rSrSr%Sr\R\S'\\S'Sr	g)�MessageInjected�zz;38The user has injected a custom WebSocket/TCP/... message.39r�messagerN)40rrrrrr�Flowr(rarrrrrcrczs����)�)�O�
�Jrrcc�8�\rSrSr%Sr\R\S'Srg)�Wakeup�zC41Event sent to layers that requested a wakeup using RequestWakeup.42r9rN)	rrrrrr43�
RequestWakeupr(rrrrrhrh�s����
#�
#�#rrh)rrErK�dataclassesrrrrr�	mitmproxyr�mitmproxy.connectionr	�mitmproxy.proxyr44rr!r%r*r4r7rN�dictrJrr(rYr^rarcrhrrr�<module>rps>�����!�$�����+�$�;�;��E����e�����	8�?�	8��	8����$:�u�$:�NLN��$�x�/�/��6F�1G�G�H�M�����.��������$����45�C�L����e�W�Q�Z�����$�
�$��$r
codekingpro/portable-devtools · Team Ai