ok

Mini Shell

Direktori : /opt/alt/python38/lib64/python3.8/site-packages/aiohttp/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/site-packages/aiohttp/__pycache__/abc.cpython-38.pyc

U

'�7`�@sxddlZddlZddlmZmZddlmZddlmZm	Z	ddl
mZmZm
Z
mZmZmZmZmZmZmZddlmZddlmZdd	lmZdd
lmZer�ddlmZddlm Z dd
l!m"Z"m#Z#ddl$m%Z%ndZ"Z#ZZ%dZ Gdd�de�Z&Gdd�de�Z'Gdd�de�Z(Gdd�de�Z)e�r>ee	e*Z+neZ+Gdd�dee+�Z,Gdd�de�Z-Gdd�de�Z.dS)�N)�ABC�abstractmethod)�Sized)�
BaseCookie�Morsel)
�
TYPE_CHECKING�Any�	Awaitable�Callable�Dict�	Generator�Iterable�List�Optional�Tuple)�CIMultiDict)�URL�)�get_running_loop)�LooseCookies)�Application)�
HTTPException)�BaseRequest�Request)�StreamResponsec@s^eZdZdd�dd�Zedd�dd�Zeed�dd	��Zdd�d
d�Z	e
edd
�dd��ZdS)�AbstractRouterN��returncCs
d|_dS)NF�Z_frozen��self�r!�>/opt/alt/python38/lib64/python3.8/site-packages/aiohttp/abc.py�__init__$szAbstractRouter.__init__��apprcCsdS)z�Post init stage.

        Not an abstract method for sake of backward compatibility,
        but if the router wants to be aware of the application
        it can override this.
        Nr!�r r%r!r!r"�	post_init'szAbstractRouter.post_initcCs|jS�Nrrr!r!r"�frozen/szAbstractRouter.frozencCs
d|_dS)zFreeze router.TNrrr!r!r"�freeze3szAbstractRouter.freeze�AbstractMatchInfo��requestrc�sdS)z#Return MATCH_INFO for given requestNr!�r r-r!r!r"�resolve7szAbstractRouter.resolve)
�__name__�
__module__�__qualname__r#rr'�property�boolr)r*rrr/r!r!r!r"r#src@s�eZdZeeeegeefd�dd���Z	eeeegedfd�dd���Z
eeeed�dd���Z
eeeefd�d	d
��Zeeeedfd�dd
���Zeedd�dd��Zedd�dd��ZdS)r+rcCsdS)zExecute matched request handlerNr!rr!r!r"�handler=szAbstractMatchInfo.handlerNcCsdS)z*Expect handler for 100-continue processingNr!rr!r!r"�expect_handlerBsz AbstractMatchInfo.expect_handlercCsdS)z<HTTPException instance raised on router's resolving, or NoneNr!rr!r!r"�http_exceptionGsz AbstractMatchInfo.http_exceptioncCsdS)z;Return a dict with additional info useful for introspectionNr!rr!r!r"�get_infoLszAbstractMatchInfo.get_info.cCsdS)z\Stack of nested applications.

        Top level application is left-most element.

        Nr!rr!r!r"�appsPszAbstractMatchInfo.appsr$cCsdS)z)Add application to the nested apps stack.Nr!r&r!r!r"�add_appYszAbstractMatchInfo.add_appcCsdS)z�Freeze the match info.

        The method is called after route resolution.

        After the call .add_app() is forbidden.

        Nr!rr!r!r"r*]szAbstractMatchInfo.freeze)r0r1r2r3rr
rr	rr5r6rrr7r�strrr8rrr9r:r*r!r!r!r"r+<s$  r+c@sNeZdZdZedd�dd�Zeed�dd��Zee	e
defd�d	d
��ZdS)�AbstractViewzAbstract class based view.Nr,cCs
||_dSr(�Z_requestr.r!r!r"r#kszAbstractView.__init__rcCs|jS)zRequest instance.r=rr!r!r"r-nszAbstractView.requestcCsdS)zExecute the view handler.Nr!rr!r!r"�	__await__sszAbstractView.__await__)
r0r1r2�__doc__rr#r3r-rrrrr>r!r!r!r"r<hsr<c@sFeZdZdZeeeeeeee	fd�dd��Z
edd�dd��ZdS)	�AbstractResolverzAbstract DNS resolver.)�host�port�familyrc�sdS)z$Return IP address for given hostnameNr!)r rArBrCr!r!r"r/{szAbstractResolver.resolveNrc�sdS)zRelease resolverNr!rr!r!r"�closeszAbstractResolver.close)r0r1r2r?rr;�intrrrr/rDr!r!r!r"r@xs
"r@c@sneZdZdZdd�eejdd�dd�Zedd�dd	��Z	ee
�fee
dd
�dd��Zee
d
d�dd��Z
dS)�AbstractCookieJarzAbstract Cookie Jar.N)�loop)rGrcCst|�|_dSr()rZ_loop)r rGr!r!r"r#�szAbstractCookieJar.__init__rcCsdS)zClear all cookies.Nr!rr!r!r"�clear�szAbstractCookieJar.clear)�cookies�response_urlrcCsdS)zUpdate cookies.Nr!)r rIrJr!r!r"�update_cookies�sz AbstractCookieJar.update_cookieszBaseCookie[str])�request_urlrcCsdS)z6Return the jar's cookies filtered by their attributes.Nr!)r rLr!r!r"�filter_cookies�sz AbstractCookieJar.filter_cookies)r0r1r2r?r�asyncioZAbstractEventLoopr#rrHrrrKrMr!r!r!r"rF�srFc@s�eZdZdZdZdZdZeedd�dd��Z	ededd�dd	��Z
edd
�dd��Zededd�dd��Z
edd
�dd��Zeeddd�dd��ZdS)�AbstractStreamWriterzAbstract stream writer.rN)�chunkrc�sdS)zWrite chunk into stream.Nr!�r rPr!r!r"�write�szAbstractStreamWriter.write�c�sdS)zWrite last chunk.Nr!rQr!r!r"�	write_eof�szAbstractStreamWriter.write_eofrc�sdS)zFlush the write buffer.Nr!rr!r!r"�drain�szAbstractStreamWriter.drain�deflate)�encodingrcCsdS)zEnable HTTP body compressionNr!)r rWr!r!r"�enable_compression�sz'AbstractStreamWriter.enable_compressioncCsdS)zEnable HTTP chunked modeNr!rr!r!r"�enable_chunking�sz$AbstractStreamWriter.enable_chunkingzCIMultiDict[str])�status_line�headersrc�sdS)zWrite HTTP headersNr!)r rZr[r!r!r"�
write_headers�sz"AbstractStreamWriter.write_headers)rS)rV)r0r1r2r?Zbuffer_sizeZoutput_sizeZlengthr�bytesrRrTrUr;rXrYr\r!r!r!r"rO�s&�rOc@s<eZdZdZejedd�dd�Zee	e
edd�dd��ZdS)	�AbstractAccessLoggerzAbstract writer to access log.N)�logger�
log_formatrcCs||_||_dSr()r_r`)r r_r`r!r!r"r#�szAbstractAccessLogger.__init__)r-�response�timercCsdS)zEmit log to logger.Nr!)r r-rarbr!r!r"�log�szAbstractAccessLogger.log)
r0r1r2r?�loggingZLoggerr;r#rrr�floatrcr!r!r!r"r^�sr^)/rNrd�abcrrZcollections.abcrZhttp.cookiesrr�typingrrr	r
rrr
rrrZ	multidictrZyarlrZhelpersrZtypedefsrZweb_apprZweb_exceptionsrZweb_requestrrZweb_responserrr+r<r@r;ZIterableBaserFrOr^r!r!r!r"�<module>s40
,"

Zerion Mini Shell 1.0