• File: web_server.cpython-38.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python38/lib64/python3.8/site-packages/aiohttp/__pycache__/web_server.cpython-38.pyc
  • Date Modified: 05/30/2024 3:08 PM
  • File size: 2.69 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
U

'7`
@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/python38/lib64/python3.8/site-packages/aiohttp/web_server.py__init__s
zServer.__init__)rcCst|jSN)listrkeysrrrrconnectionsszServer.connections)r	transportrcCs||j|<dSrr)rrr$rrrconnection_made#szServer.connection_made)rexcrcCs||jkr|j|=dSrr%)rrr'rrrconnection_lost(s
zServer.connection_lostzasyncio.Task[None])messagepayloadprotocolwritertaskrcCst||||||jSr)rr)rr)r*r+r,r-rrrr.szServer._make_request)timeoutrcs2fdd|jD}tj|IdH|jdS)Ncsg|]}|qSr)shutdown).0Zconnr.rr
<listcomp>9sz#Server.shutdown.<locals>.<listcomp>)rasyncioZgatherclear)rr.Zcorosrr1rr/8szServer.shutdowncCst|fd|ji|jS)Nr)r
rrr"rrr__call__=szServer.__call__)N)N)__name__
__module____qualname__rrrr3ZAbstractEventLooprrpropertyrr
r#Z	Transportr&
BaseExceptionr(rrr	rrfloatr/r5rrrrrs<
r)__doc__r3typingrrrrrrabcr	Zhelpersr
Zhttp_parserrZstreamsrZweb_protocolr
rrZweb_requestr__all__rrrrr<module>s