HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib64/python3.10/site-packages/aiohttp/__pycache__/abc.cpython-310.pyc
o

+we��@s�ddlZddlZddlmZmZddlmZddlmZm	Z	ddl
mZmZm
Z
mZmZmZmZmZmZmZddlmZddlmZdd	lmZdd
lmZerkddlmZddlm Z dd
l!m"Z"m#Z#ddl$m%Z%n
dZ"Z#ZZ%dZ Gdd�de�Z&Gdd�de�Z'Gdd�de�Z(Gdd�de�Z)er�ee	e*Z+neZ+edge,fZ-Gdd�dee+�Z.Gdd�de�Z/Gdd�de�Z0dS)�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@sZeZdZddd�Zdeddfdd�Zedefdd	��Zdd
d�Z	e
dedd
fdd��ZdS)�AbstractRouter�returnNcCs
d|_dS)NF��_frozen��self�r!�D/home/arjun/projects/env/lib/python3.10/site-packages/aiohttp/abc.py�__init__$�
zAbstractRouter.__init__�appcC�dS)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'�zAbstractRouter.post_initcC�|jS�Nrrr!r!r"�frozen/szAbstractRouter.frozencCs
d|_dS)zFreeze router.TNrrr!r!r"�freeze3s
zAbstractRouter.freeze�request�AbstractMatchInfoc���dS)z#Return MATCH_INFO for given requestNr!�r r.r!r!r"�resolve7�zAbstractRouter.resolve�rN)
�__name__�
__module__�__qualname__r#rr(�property�boolr,r-rrr2r!r!r!r"r#s

rc@s�eZdZeedeegeeffdd���Z	eedeegee
effdd���Zeede
efdd���Z
edeeeffdd	��Zeedeed
ffdd���Zed
eddfdd��Zeddd��ZdS)r/rcCr&)zExecute matched request handlerNr!rr!r!r"�handler=r)zAbstractMatchInfo.handlercCr&)z*Expect handler for 100-continue processingNr!rr!r!r"�expect_handlerBr)z AbstractMatchInfo.expect_handlercCr&)z<HTTPException instance raised on router's resolving, or NoneNr!rr!r!r"�http_exceptionIr)z AbstractMatchInfo.http_exceptioncCr&)z;Return a dict with additional info useful for introspectionNr!rr!r!r"�get_infoNr)zAbstractMatchInfo.get_info.cCr&)z\Stack of nested applications.

        Top level application is left-most element.

        Nr!rr!r!r"�appsRr)zAbstractMatchInfo.appsr%NcCr&)z)Add application to the nested apps stack.Nr!r'r!r!r"�add_app[r)zAbstractMatchInfo.add_appcCr&)z�Freeze the match info.

        The method is called after route resolution.

        After the call .add_app() is forbidden.

        Nr!rr!r!r"r-_r)zAbstractMatchInfo.freezer4)r5r6r7r8rr
rr	rr:rr;rr<r�strrr=rrr>r?r-r!r!r!r"r/<s* �r/c@sPeZdZdZdeddfdd�Zedefdd��Zede	e
deffd	d
��ZdS)�AbstractViewzAbstract class based view.r.rNcCs
||_dSr+��_requestr1r!r!r"r#mr$zAbstractView.__init__cCr*)zRequest instance.rBrr!r!r"r.pszAbstractView.requestcCr&)zExecute the view handler.Nr!rr!r!r"�	__await__ur)zAbstractView.__await__)
r5r6r7�__doc__rr#r8r.rrrrrDr!r!r!r"rAjsrAc@sHeZdZdZededededeeee	ffdd��Z
edd	d
��ZdS)�AbstractResolverzAbstract DNS resolver.�host�port�familyrc�r0)z$Return IP address for given hostnameNr!)r rGrHrIr!r!r"r2}r3zAbstractResolver.resolveNc�r0)zRelease resolverNr!rr!r!r"�close�r3zAbstractResolver.closer4)r5r6r7rErr@�intrrrr2rJr!r!r!r"rFzs(rFzMorsel[str]c@s�eZdZdZdd�deejddfdd�Zeddee	ddfd	d
��Z
ededdfdd
��Zee
�fdede
ddfdd��Zede
ddfdd��ZdS)�AbstractCookieJarzAbstract Cookie Jar.N)�looprMrcCst|�|_dSr+)r�_loop)r rMr!r!r"r#�szAbstractCookieJar.__init__�	predicatecCr&)z,Clear all cookies if no predicate is passed.Nr!)r rOr!r!r"�clear�r)zAbstractCookieJar.clear�domaincCr&)z0Clear all cookies for domain and all subdomains.Nr!)r rQr!r!r"�clear_domain�r)zAbstractCookieJar.clear_domain�cookies�response_urlcCr&)zUpdate cookies.Nr!)r rSrTr!r!r"�update_cookies�r)z AbstractCookieJar.update_cookies�request_urlzBaseCookie[str]cCr&)z6Return the jar's cookies filtered by their attributes.Nr!)r rVr!r!r"�filter_cookies�r)z AbstractCookieJar.filter_cookiesr+)r5r6r7rEr�asyncio�AbstractEventLoopr#r�ClearCookiePredicaterPr@rRrrrUrWr!r!r!r"rL�srLc@s�eZdZUdZdZdZdZeee	d<e
deddfdd��Ze
ddeddfd
d��Z
e
ddd
��Ze
ddeddfdd��Ze
ddd��Ze
deddddfdd��ZdS)�AbstractStreamWriterzAbstract stream writer.r�length�chunkrNc�r0)zWrite chunk into stream.Nr!�r r]r!r!r"�write�r3zAbstractStreamWriter.write�c�r0)zWrite last chunk.Nr!r^r!r!r"�	write_eof�r3zAbstractStreamWriter.write_eofc�r0)zFlush the write buffer.Nr!rr!r!r"�drain�r3zAbstractStreamWriter.drain�deflate�encodingcCr&)zEnable HTTP body compressionNr!)r rdr!r!r"�enable_compression�r)z'AbstractStreamWriter.enable_compressioncCr&)zEnable HTTP chunked modeNr!rr!r!r"�enable_chunking�r)z$AbstractStreamWriter.enable_chunking�status_line�headerszCIMultiDict[str]c�r0)zWrite HTTP headersNr!)r rgrhr!r!r"�
write_headers�r3z"AbstractStreamWriter.write_headers)r`r4)rc)r5r6r7rE�buffer_size�output_sizer\rrK�__annotations__r�bytesr_rarbr@rerfrir!r!r!r"r[�s.
���r[c	@sFeZdZdZdejdeddfdd�Zede	d	e
d
eddfdd��ZdS)
�AbstractAccessLoggerzAbstract writer to access log.�logger�
log_formatrNcCs||_||_dSr+)rorp)r rorpr!r!r"r#�s
zAbstractAccessLogger.__init__r.�response�timecCr&)zEmit log to logger.Nr!)r r.rqrrr!r!r"�log�r)zAbstractAccessLogger.log)
r5r6r7rE�logging�Loggerr@r#rrr�floatrsr!r!r!r"rn�s
 rn)1rXrt�abcrr�collections.abcr�http.cookiesrr�typingrrr	r
rrr
rrr�	multidictr�yarlr�helpersr�typedefsr�web_appr�web_exceptionsr�web_requestrr�web_responserrr/rArFr@�IterableBaser9rZrLr[rnr!r!r!r"�<module>s80
."