Viewing File: /opt/alt/python35/lib64/python3.5/site-packages/aiohttp/__pycache__/abc.cpython-35.opt-1.pyc



Z>
@sddlZddlmZmZddlmZmZGdddeZGdddeZGdd	d	eZ	Gd
ddeZ
Gdd
d
eeZGdddeZGdddeZ
dS)N)ABCabstractmethod)IterableSizedc@sXeZdZddZddZeddZddZed	d
Z	dS)AbstractRoutercCs
d|_dS)NF)_frozen)selfr	/abc.py__init__szAbstractRouter.__init__cCsdS)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	)rappr	r	r
	post_initszAbstractRouter.post_initcCs|jS)N)r)rr	r	r
frozenszAbstractRouter.frozencCs
d|_dS)zFreeze router.TN)r)rr	r	r
freezeszAbstractRouter.freezecsdS)z#Return MATCH_INFO for given requestNr	)rrequestr	r	r
resolveszAbstractRouter.resolveN)
__name__
__module____qualname__rr
propertyrrrrr	r	r	r
rs
rc@seZdZeddZeddZeeddZeddZeed	d
Z	eddZ
ed
dZdS)AbstractMatchInfocsdS)zExecute matched request handlerNr	)rrr	r	r
handler"szAbstractMatchInfo.handlercsdS)z*Expect handler for 100-continue processingNr	)rrr	r	r
expect_handler&sz AbstractMatchInfo.expect_handlercCsdS)z<HTTPException instance raised on router's resolving, or NoneNr	)rr	r	r
http_exception*sz AbstractMatchInfo.http_exceptioncCsdS)z;Return a dict with additional info useful for introspectionNr	)rr	r	r
get_info/szAbstractMatchInfo.get_infocCsdS)z\Stack of nested applications.

        Top level application is left-most element.

        Nr	)rr	r	r
apps3szAbstractMatchInfo.appscCsdS)z)Add application to the nested apps stack.Nr	)rrr	r	r
add_app<szAbstractMatchInfo.add_appcCsdS)zFreeze the match info.

        The method is called after route resolution.

        After the call .add_app() is forbidden.

        Nr	)rr	r	r
r@szAbstractMatchInfo.freezeN)rrrrrrrrrrrrr	r	r	r
r src@sFeZdZdZddZeddZeddZdS)	AbstractViewzAbstract class based view.cCs
||_dS)N)_request)rrr	r	r
rNszAbstractView.__init__cCs|jS)zRequest instance.)r)rr	r	r
rQszAbstractView.requestcCsdS)zExecute the view handler.Nr	)rr	r	r
	__await__VszAbstractView.__await__N)	rrr__doc__rrrrrr	r	r	r
rKsrc@s:eZdZdZeddZeddZdS)AbstractResolverzAbstract DNS resolver.csdS)z$Return IP address for given hostnameNr	)rhostnamer	r	r
r^szAbstractResolver.resolvecsdS)zRelease resolverNr	)rr	r	r
closebszAbstractResolver.closeN)rrrr rrr#r	r	r	r
r![sr!c@saeZdZdZddddZeddZeddd	Zed
dZdS)AbstractCookieJarzAbstract Cookie Jar.loopNcCs|ptj|_dS)N)asyncioZget_event_loopZ_loop)rr%r	r	r
rjszAbstractCookieJar.__init__cCsdS)zClear all cookies.Nr	)rr	r	r
clearmszAbstractCookieJar.clearcCsdS)zUpdate cookies.Nr	)rZcookiesZresponse_urlr	r	r
update_cookiesqsz AbstractCookieJar.update_cookiescCsdS)z6Return the jar's cookies filtered by their attributes.Nr	)rZrequest_urlr	r	r
filter_cookiesusz AbstractCookieJar.filter_cookies)	rrrr rrr'r(r)r	r	r	r
r$gsr$c@sOeZdZdZeddZedddZeddZd	S)
AbstractStreamWriterzAbstract stream writer.csdS)zWrite chunk into stream.Nr	)rchunkr	r	r
write}szAbstractStreamWriter.writecsdS)zWrite last chunk.Nr	)rr+r	r	r
	write_eofszAbstractStreamWriter.write_eofcsdS)zFlush the write buffer.Nr	)rr	r	r
drainszAbstractStreamWriter.drainN)rrrr rr,r.r/r	r	r	r
r*zs
r*c@s4eZdZdZddZeddZdS)AbstractAccessLoggerzAbstract writer to access log.cCs||_||_dS)N)logger
log_format)rr1r2r	r	r
rs	zAbstractAccessLogger.__init__cCsdS)zEmit log to logger.Nr	)rrresponsetimer	r	r
logszAbstractAccessLogger.logN)rrrr rrr5r	r	r	r
r0sr0)r&abcrrcollections.abcrrrrrr!r$r*r0r	r	r	r
<module>s+
Back to Directory File Manager