%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python37/lib64/python3.7/site-packages/aiohttp/__pycache__/
Upload File :
Create Path :
Current File : //opt/alt/python37/lib64/python3.7/site-packages/aiohttp/__pycache__/abc.cpython-37.pyc

B

�Z�_�@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)�_frozen)�self�r�>/opt/alt/python37/lib64/python3.7/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)rr"rrr �	post_init'szAbstractRouter.post_initcCs|jS)N)r)rrrr �frozen/szAbstractRouter.frozencCs
d|_dS)zFreeze router.TN)r)rrrr �freeze3szAbstractRouter.freeze�AbstractMatchInfo)�requestrc�sdS)z#Return MATCH_INFO for given requestNr)rr'rrr �resolve7szAbstractRouter.resolve)
�__name__�
__module__�__qualname__r!rr#�property�boolr$r%rrr(rrrr 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)rrrr �handler=szAbstractMatchInfo.handlerNcCsdS)z*Expect handler for 100-continue processingNr)rrrr �expect_handlerBsz AbstractMatchInfo.expect_handlercCsdS)z<HTTPException instance raised on router's resolving, or NoneNr)rrrr �http_exceptionGsz AbstractMatchInfo.http_exceptioncCsdS)z;Return a dict with additional info useful for introspectionNr)rrrr �get_infoLszAbstractMatchInfo.get_info.cCsdS)z\Stack of nested applications.

        Top level application is left-most element.

        Nr)rrrr �appsPszAbstractMatchInfo.apps)r"rcCsdS)z)Add application to the nested apps stack.Nr)rr"rrr �add_appYszAbstractMatchInfo.add_appcCsdS)z�Freeze the match info.

        The method is called after route resolution.

        After the call .add_app() is forbidden.

        Nr)rrrr r%]szAbstractMatchInfo.freeze)r)r*r+r,rr
rr	rr.r/rrr0r�strrr1rrr2r3r%rrrr r&<s$  r&c@sNeZdZdZedd�dd�Zeed�dd��Zee	e
defd�d	d
��ZdS)�AbstractViewzAbstract class based view.N)r'rcCs
||_dS)N)�_request)rr'rrr r!kszAbstractView.__init__)rcCs|jS)zRequest instance.)r6)rrrr r'nszAbstractView.requestcCsdS)zExecute the view handler.Nr)rrrr �	__await__sszAbstractView.__await__)
r)r*r+�__doc__rr!r,r'rrrrr7rrrr r5hsr5c@sFeZdZdZeeeeeeee	fd�dd��Z
edd�dd��ZdS)	�AbstractResolverzAbstract DNS resolver.)�host�port�familyrc�sdS)z$Return IP address for given hostnameNr)rr:r;r<rrr r({szAbstractResolver.resolveN)rc�sdS)zRelease resolverNr)rrrr �closeszAbstractResolver.close)r)r*r+r8rr4�intrrrr(r=rrrr r9xs
"r9c@sneZdZdZdd�eejdd�dd�Zedd�dd	��Z	ee
�fee
dd
�dd��Zee
d
d�dd��Z
dS)�AbstractCookieJarzAbstract Cookie Jar.N)�loop)r@rcCst|�|_dS)N)rZ_loop)rr@rrr r!�szAbstractCookieJar.__init__)rcCsdS)zClear all cookies.Nr)rrrr �clear�szAbstractCookieJar.clear)�cookies�response_urlrcCsdS)zUpdate cookies.Nr)rrBrCrrr �update_cookies�sz AbstractCookieJar.update_cookieszBaseCookie[str])�request_urlrcCsdS)z6Return the jar's cookies filtered by their attributes.Nr)rrErrr �filter_cookies�sz AbstractCookieJar.filter_cookies)r)r*r+r8r�asyncioZAbstractEventLoopr!rrArrrDrFrrrr r?�sr?c@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)rrIrrr �write�szAbstractStreamWriter.write�c�sdS)zWrite last chunk.Nr)rrIrrr �	write_eof�szAbstractStreamWriter.write_eof)rc�sdS)zFlush the write buffer.Nr)rrrr �drain�szAbstractStreamWriter.drain�deflate)�encodingrcCsdS)zEnable HTTP body compressionNr)rrOrrr �enable_compression�sz'AbstractStreamWriter.enable_compressioncCsdS)zEnable HTTP chunked modeNr)rrrr �enable_chunking�sz$AbstractStreamWriter.enable_chunkingzCIMultiDict[str])�status_line�headersrc�sdS)zWrite HTTP headersNr)rrRrSrrr �
write_headers�sz"AbstractStreamWriter.write_headers)rK)rN)r)r*r+r8�buffer_sizeZoutput_size�lengthr�bytesrJrLrMr4rPrQrTrrrr rH�s"rHc@s<eZdZdZejedd�dd�Zee	e
edd�dd��ZdS)	�AbstractAccessLoggerzAbstract writer to access log.N)�logger�
log_formatrcCs||_||_dS)N)rYrZ)rrYrZrrr r!�szAbstractAccessLogger.__init__)r'�response�timercCsdS)zEmit log to logger.Nr)rr'r[r\rrr �log�szAbstractAccessLogger.log)
r)r*r+r8�loggingZLoggerr4r!rrr�floatr]rrrr rX�srX)/rGr^�abcrrZcollections.abcrZhttp.cookiesrr�typingrrr	r
rrr
rrrZ	multidictrZyarlrZhelpersrZtypedefsrZweb_apprZweb_exceptionsrZweb_requestrrZweb_responserrr&r5r9r4ZIterableBaser?rHrXrrrr �<module>s40
,"

Zerion Mini Shell 1.0