Team Ai
Datasetpublic

codekingpro/portable-devtools

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

2��j�����SSKrSSKrSSKrSSKJrJr SSKJr SSKJ	r	J3r4 SSKJrJ
r
JrJrJrJrJrJrJrJrJrJrJr SSKJr SSKJr SS	KJr SS5KJ r  \(aSSK!J"r" SSK#J$r$ SS
K%J&r&J'r' SSK(J)r) O6S=r&=r'=r"r)Sr$"SS\5r*"SS\5r+"SS\5r,"SS\5r-"SS\5r.\(a	\\7\/r0O\r0\S/\14r2"SS\\05r3"SS\5r4"SS\5r5g) �N)�ABC�abstractmethod)�Sized)�8BaseCookie�Morsel)
�
TYPE_CHECKING�Any�	Awaitable�Callable�Dict�	Generator�Iterable�List�Optional�Sequence�Tuple�	TypedDict�Union)�CIMultiDict)�URL�)�parse_set_cookie_headers)�LooseCookies)�Application)�
HTTPException)�BaseRequest�Request)�StreamResponsec�n�\rSrSrS
SjrS\SS4Sjr\S\4Sj5r	S
Sjr9\S	\SS104Sj5r
Srg)�AbstractRouter�'�returnNc��SUlg)NF��_frozen��selfs �QD:\code\apps\devtools\python\user_packages\Python313\site-packages\aiohttp/abc.py�__init__�AbstractRouter.__init__(s	������appc��g)z�Post init stage.11 12Not an abstract method for sake of backward compatibility,13but if the router wants to be aware of the application14it can override this.15N��r'r,s  r(�	post_init�AbstractRouter.post_init+��r+c��UR$�Nr$r&s r(�frozen�AbstractRouter.frozen3s���|�|�r+c��SUlg)zFreeze router.TNr$r&s r(�freeze�AbstractRouter.freeze7s	����r+�request�AbstractMatchInfoc��# �g7f)z#Return MATCH_INFO for given requestNr.�r'r:s  r(�resolve�AbstractRouter.resolve;������r$�r"N)�__name__�16__module__�__qualname__�__firstlineno__r)rr0�property�boolr5r8rrr>�__static_attributes__r.r+r(r r 's]����[��T����������2�W�2�1D�2��2r+r c�,�\rSrSrSr\\S\\/\	\1744Sj55r\\S\\/\	\\1844Sj55r
\\S\\4Sj55r\S\\\44Sj5r\\S\\S44S	j55r\S19\SS4Sj5r\SS
j5rSrg)r;�@r.r"c��g)zExecute matched request handlerNr.r&s r(�handler�AbstractMatchInfo.handlerDr2r+c��g)z*Expect handler for 100-continue processingNr.r&s r(�expect_handler� AbstractMatchInfo.expect_handlerIr2r+c��g)z<HTTPException instance raised on router's resolving, or NoneNr.r&s r(�http_exception� AbstractMatchInfo.http_exceptionPr2r+c��g)z;Return a dict with additional info useful for introspectionNr.r&s r(�get_info�AbstractMatchInfo.get_infoUr2r+.c��g)zLStack of nested applications.20 21Top level application is left-most element.22 23Nr.r&s r(�apps�AbstractMatchInfo.appsYr2r+r,Nc��g)z)Add application to the nested apps stack.Nr.r/s  r(�add_app�AbstractMatchInfo.add_appbr2r+c��g)zoFreeze the match info.24 25The method is called after route resolution.26 27After the call .add_app() is forbidden.28 29Nr.r&s r(r8�AbstractMatchInfo.freezefr2r+rB)rCrDrErF�	__slots__rGrrrr30rrMrrPrrSr�strr	rVrrrYr\r8rIr.r+r(r;r;@s'���I�
��.��7�)�Y�~�-F�"F�G�.���.���9�	�7�)�Y�x��'?�@�@�	A�9���9�31��K��� 7�K���K��J�$�s�C�x�.�J��J����e�K��,�-������8�;�8�4�8��8����r+r;c�f�\rSrSrSrS\SS4Sjr\S\4Sj5r\	S\32SS\44Sj5rS	r
g)33�AbstractView�qzAbstract class based view.r:r"Nc��Xlgr4��_requestr=s  r(r)�AbstractView.__init__ts���
r+c��UR$)zRequest instance.rfr&s r(r:�AbstractView.requestws���}�}�r+c��g)zExecute the view handler.Nr.r&s r(�	__await__�AbstractView.__await__|r2r+rf)rCrDrErF�__doc__rr)rGr:rr
rrlrIr.r+r(rcrcqsZ��$� �� �D� ��������(�9�T�4��%?�@�(��(r+rcc�V�\rSrSr%Sr\\S'\\S'\\S'\\S'\\S'\\S'S	rg34)�
ResolveResult�aqResolve result.35 36This is the result returned from an AbstractResolver's37resolve method.38 39:param hostname: The hostname that was provided.40:param host: The IP address that was resolved.41:param port: The port that was resolved.42:param family: The address family that was resolved.43:param proto: The protocol that was resolved.44:param flags: The flags that were resolved.45�hostname�host�port�family�proto�flagsr.N)	rCrDrErFrnra�__annotations__�intrIr.r+r(rprp�s'����M�46
�I�47
�I��K��J��Jr+rpc��\rSrSrSr\S\R4S\S\	S\RS\\4Sjj5r
\SS48j5rSrg	)
�AbstractResolver�zAbstract DNS resolver.rrsrtrur"c��# �g7f)z$Return IP address for given hostnameNr.)r'rsrtrus    r(r>�AbstractResolver.resolve�r@rANc��# �g7f)zRelease resolverNr.r&s r(�close�AbstractResolver.close�r@rAr.rB)rCrDrErFrnr�socket�AF_INETrary�
AddressFamilyrrpr>r�rIr.r+r(r{r{�s_�� ��%&�v�~�~�3��3�"�3�06�0D�0D�3�	
�m�	�3��3�49���r+r{zMorsel[str]c��\rSrSrSrSS.S\\RSS4Sjjr\	\50S\4Sj55r\51SS	\\
SS4S52jj5r\53S\SS4Sj5r\54\"54S
\S\SS4Sjj5rS\\S\SS4Sjr\55S\SS4Sj5rSrg)�AbstractCookieJar�zAbstract Cookie Jar.N)�loopr�r"c�J�U=(d [R"5Ulgr4)�asyncio�get_running_loop�_loop)r'r�s  r(r)�AbstractCookieJar.__init__�s���7�W�5�5�7��56r+c��g)z(Return True if cookies should be quoted.Nr.r&s r(�quote_cookie�AbstractCookieJar.quote_cookie�r2r+�	predicatec��g)z,Clear all cookies if no predicate is passed.Nr.)r'r�s  r(�clear�AbstractCookieJar.clear�r2r+�domainc��g)z0Clear all cookies for domain and all subdomains.Nr.)r'r�s  r(�clear_domain�AbstractCookieJar.clear_domain�r2r+�cookies�response_urlc��g)zUpdate cookies.Nr.)r'r�r�s   r(�update_cookies� AbstractCookieJar.update_cookies�r2r+�headersc�\�U(a%[U5=n(aURX25 ggg)z+Update cookies from raw Set-Cookie headers.N)rr�)r'r�r��cookies_to_updates    r(�update_cookies_from_headers�-AbstractCookieJar.update_cookies_from_headers�s/���-E�g�-N�N�)�N���� 1�@�O�7r+�request_urlzBaseCookie[str]c��g)z6Return the jar's cookies filtered by their attributes.Nr.)r'r�s  r(�filter_cookies� AbstractCookieJar.filter_cookies�r2r+)r�r4)rCrDrErFrnrr��AbstractEventLoopr)rGrrHr��ClearCookiePredicater�rar�rrr�rr�r�rIr.r+r(r�r��s���FJ�8���)B�)B� C�8�t�8���7�d�7���7��;�x�(<�=�;��;��;��?�3�?�4�?��?��HK���l��#��RV����A���}�A�47�A�	
�A��E�#�E�2C�E��Er+r�c��\rSrSr%SrSr\\S'Sr\\S'Sr	\57\\S'\S\\
\\4SS	4S58j5r\SS\
SS	4Sjj5r\SSj5r\SS
\S\59\SS	4Sjj5r\SSj5r\S\SSSS	4Sj5rSSjrSrg	)�AbstractStreamWriter��zAbstract stream writer.r�buffer_size�output_size�length�chunkr"Nc��# �g7f)zWrite chunk into stream.Nr.�r'r�s  r(�write�AbstractStreamWriter.write�r@rAc��# �g7f)zWrite last chunk.Nr.r�s  r(�	write_eof�AbstractStreamWriter.write_eof�r@rAc��# �g7f)zFlush the write buffer.Nr.r&s r(�drain�AbstractStreamWriter.drain�r@rA�encoding�strategyc��g)zEnable HTTP body compressionNr.)r'r�r�s   r(�enable_compression�'AbstractStreamWriter.enable_compression�r2r+c��g)zEnable HTTP chunked modeNr.r&s r(�enable_chunking�$AbstractStreamWriter.enable_chunking�r2r+�status_liner�zCIMultiDict[str]c��# �g7f)zWrite HTTP headersNr.)r'r�r�s   r(�
write_headers�"AbstractStreamWriter.write_headers�r@rAc��g)z�Force sending buffered headers if not already sent.60 61Required only if write_headers() buffers headers instead of sending immediately.62For backwards compatibility, this method does nothing by default.63Nr.r&s r(�send_headers�!AbstractStreamWriter.send_headers�r2r+r.)r+rB)�deflateN)rCrDrErFrnr�ryrxr�r�rrr�bytes�	bytearray�64memoryviewr�r�r�rar�r�r�r�rIr.r+r(r�r��s��!��K����K����F�H�S�M���'��u�i��'C�!D�'��'��'�� �U� �T� �� ��&��&��CG�+��+�3;�C�=�+�	
�+��+�65�'��'��!��!�);�!�	
�!��!�66r+r�c	��\rSrSrSrSrS\RS\SS4Sjr	\67S	\S68\S\
SS4Sj5r\S\4S
j5rSrg)�AbstractAccessLogger��zAbstract writer to access log.��logger�69log_formatr�r�r"Nc��XlX lgr4r�)r'r�r�s   r(r)�AbstractAccessLogger.__init__s����$�r+r:�response�timec��g)zEmit log to logger.Nr.)r'r:r�r�s    r(�log�AbstractAccessLogger.logr2r+c��g)zCheck if logger is enabled.Tr.r&s r(�enabled�AbstractAccessLogger.enabled	s��r+)r�r�)rCrDrErFrnr`�logging�Loggerrar)rrr�floatr�rGrHr�rIr.r+r(r�r��st��(�(�I�%�w�~�~�%�3�%�4�%��"�;�"�.�"��"�RV�"��"������r+r�)6r�r�r��abcrr�collections.abcr�http.cookiesrr�typingrr	r70rrr
rrrrrrr�	multidictr�yarlr�_cookie_helpersr�typedefsr�web_appr�web_exceptionsr�web_requestrr�web_responserr r;rcrpr{ra�IterableBaserHr�r�r�r�r.r+r(�<module>r�s�����
�#�!�+����� "��5�"��$�-�1�,�;?�?�K�?�'�?�K�.��M�2�S�2�2.��.�b
(�3�
(� �I��,�s����F�3�K�(�L��L� ���� 5�6�� E��|� E�F(�3�(�V�3�r+
codekingpro/portable-devtools · Team Ai