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

ka
@sdZddlZddlmZmZmZmZmZmZddl	m
Z
ddlmZddl
mZddlmZdd	lmZmZmZdd
lmZdZGdd
d
ZdS)zLow level HTTP server.N)Any	AwaitableCallableDictListOptional)AbstractStreamWriter)get_running_loop)RawRequestMessage)StreamReader)RequestHandler_RequestFactory_RequestHandler)BaseRequest)Serverc@seZdZdddeeeeejeddddZ	e
eedddZ
eejdd	d
dZdeeeddd
dZeeeededddZdeeddddZedddZdS)rN)request_factoryloop)handlerrrkwargsreturncKs2t||_i|_||_d|_||_|p*|j|_dS)Nr)r
_loop_connections_kwargsZrequests_countZrequest_handler
_make_requestr)selfrrrrrE/opt/alt/python37/lib64/python3.7/site-packages/aiohttp/web_server.py__init__s
zServer.__init__)rcCst|jS)N)listrkeys)rrrrconnectionsszServer.connections)r	transportrcCs||j|<dS)N)r)rrr"rrrconnection_made#szServer.connection_made)rexcrcCs||jkr|j|=dS)N)r)rrr$rrrconnection_lost(s
zServer.connection_lostzasyncio.Task[None])messagepayloadprotocolwritertaskrcCst||||||jS)N)rr)rr&r'r(r)r*rrrr.szServer._make_request)timeoutrcs2fdd|jD}tj|IdH|jdS)Ncsg|]}|qSr)shutdown).0Zconn)r+rr
<listcomp>9sz#Server.shutdown.<locals>.<listcomp>)rasyncioZgatherclear)rr+Zcorosr)r+rr,8szServer.shutdowncCst|fd|ji|jS)Nr)r
rr)rrrr__call__=szServer.__call__)N)N)__name__
__module____qualname__rrrr/ZAbstractEventLooprrpropertyrr
r!Z	Transportr#
BaseExceptionr%rrr	rrfloatr,r1rrrrrs$
r)__doc__r/typingrrrrrrabcr	Zhelpersr
Zhttp_parserrZstreamsrZweb_protocolr
rrZweb_requestr__all__rrrrr<module>s