• File: abc.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib64/python3.7/site-packages/aiohttp/__pycache__/abc.cpython-37.pyc
  • Date Modified: 05/11/2022 10:20 AM
  • File size: 8.36 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

ka@sddlZddlZddlmZmZddlmZddlmZm	Z	ddl
mZmZm
Z
mZmZmZmZmZmZmZddlmZddlmZdd	lmZdd
lmZerddlmZddlm Z dd
l!m"Z"m#Z#ddl$m%Z%ndZ"Z#ZZ%dZ GdddeZ&GdddeZ'GdddeZ(GdddeZ)er>ee	e*Z+neZ+edge,fZ-Gdddee+Z.GdddeZ/GdddeZ0dS)N)ABCabstractmethod)Sized)
BaseCookieMorsel)

TYPE_CHECKINGAny	AwaitableCallableDict	GeneratorIterableListOptionalTuple)CIMultiDict)URL)get_running_loop)LooseCookies)Application)
HTTPException)BaseRequestRequest)StreamResponsec@s^eZdZddddZeddddZeeddd	Zddd
dZ	e
edd
ddZdS)AbstractRouterN)returncCs
d|_dS)NF)_frozen)selfr>/opt/alt/python37/lib64/python3.7/site-packages/aiohttp/abc.py__init__$szAbstractRouter.__init__)apprcCsdS)zPost 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.freezeAbstractMatchInfo)requestrcsdS)z#Return MATCH_INFO for given requestNr)rr'rrr resolve7szAbstractRouter.resolve)
__name__
__module____qualname__r!rr#propertyboolr$r%rrr(rrrr r#src@seZdZeeeegeefdddZ	eeeegedfdddZ
eeeedddZ
eeeefdd	d
Zeeeedfddd
ZeeddddZeddddZdS)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)zFreeze 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/rrr0rstrrr1rrr2r3r%rrrr r&<s$  r&c@sNeZdZdZeddddZeedddZee	e
defdd	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	fdddZ
eddddZdS)	AbstractResolverzAbstract DNS resolver.)hostportfamilyrcsdS)z$Return IP address for given hostnameNr)rr:r;r<rrr r({szAbstractResolver.resolveN)rcsdS)zRelease resolverNr)rrrr closeszAbstractResolver.close)r)r*r+r8rr4intrrrr(r=rrrr r9xs
"r9zMorsel[str]c@seZdZdZddeejddddZedee	dddd	Z
eedd
ddZee
fee
dd
ddZee
ddddZdS)AbstractCookieJarzAbstract Cookie Jar.N)loop)r@rcCst||_dS)N)rZ_loop)rr@rrr r!szAbstractCookieJar.__init__)	predicatercCsdS)z,Clear all cookies if no predicate is passed.Nr)rrArrr clearszAbstractCookieJar.clear)domainrcCsdS)z0Clear all cookies for domain and all subdomains.Nr)rrCrrr clear_domainszAbstractCookieJar.clear_domain)cookiesresponse_urlrcCsdS)zUpdate cookies.Nr)rrErFrrr update_cookiessz AbstractCookieJar.update_cookieszBaseCookie[str])request_urlrcCsdS)z6Return the jar's cookies filtered by their attributes.Nr)rrHrrr filter_cookiessz AbstractCookieJar.filter_cookies)N)r)r*r+r8rasyncioZAbstractEventLoopr!rClearCookiePredicaterBr4rDrrrGrIrrrr r?sr?c@seZdZdZdZdZdZeeddddZ	ededddd	Z
edd
ddZededdddZ
edd
ddZeedddddZdS)AbstractStreamWriterzAbstract stream writer.rN)chunkrcsdS)zWrite chunk into stream.Nr)rrMrrr writeszAbstractStreamWriter.writecsdS)zWrite last chunk.Nr)rrMrrr 	write_eofszAbstractStreamWriter.write_eof)rcsdS)zFlush the write buffer.Nr)rrrr drainszAbstractStreamWriter.draindeflate)encodingrcCsdS)zEnable HTTP body compressionNr)rrSrrr enable_compressionsz'AbstractStreamWriter.enable_compressioncCsdS)zEnable HTTP chunked modeNr)rrrr enable_chunkingsz$AbstractStreamWriter.enable_chunkingzCIMultiDict[str])status_lineheadersrcsdS)zWrite HTTP headersNr)rrVrWrrr 
write_headerssz"AbstractStreamWriter.write_headers)rO)rR)r)r*r+r8buffer_sizeZoutput_sizelengthrbytesrNrPrQr4rTrUrXrrrr rLs"rLc@s<eZdZdZejeddddZee	e
eddddZdS)	AbstractAccessLoggerzAbstract writer to access log.N)logger
log_formatrcCs||_||_dS)N)r]r^)rr]r^rrr r!szAbstractAccessLogger.__init__)r'responsetimercCsdS)zEmit log to logger.Nr)rr'r_r`rrr logszAbstractAccessLogger.log)
r)r*r+r8loggingZLoggerr4r!rrrfloatrarrrr r\sr\)1rJrbabcrrZcollections.abcrZhttp.cookiesrrtypingrrr	r
rrr
rrrZ	multidictrZyarlrZhelpersrZtypedefsrZweb_apprZweb_exceptionsrZweb_requestrrZweb_responserrr&r5r9r4ZIterableBaser-rKr?rLr\rrrr <module>s60
,"