MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
Upload Files
File: //opt/alt/python35/lib64/python3.5/site-packages/aiohttp/__pycache__/web.cpython-35.opt-1.pyc


���Z�@sAddlZddlZddlZddlmZddlmZddlmZddl	m
Z
mZmZm
Z
mZmZmZmZmZmZmZmZddlmZddlmZdd	lTdd	l
Tdd	lTdd	lTdd	lTdd	lTdd	lTdd
lmZmZmZmZmZdd	lTdd	lTdd	lTejeje
jejejejejejejejejd!Zddd
ddddddddddeddde
j de
j j!dedddddddd�Z"dd�Z#e$d kr=e#ej%dd��dS)"�N)�ArgumentParser)�Iterable)�
import_module�)�helpers�web_app�web_exceptions�web_fileresponse�web_middlewares�web_protocol�web_request�web_response�
web_runner�
web_server�web_urldispatcher�web_ws)�
access_logger)�Application)�*)�	AppRunner�GracefulExit�SockSite�TCPSite�UnixSite�run_app�host�port�path�sock�shutdown_timeoutgN@�ssl_context�print�backlog��access_log_class�access_log_format�
access_log�handle_signalsT�
reuse_address�
reuse_portcCs0tj�}t|d|d|	d|
d|�}|j|j��g}z�|dk	r�t|tttt	f�r�|j
t|||d|d|d|d	|
d
|��qSx�|D]=}|j
t|||d|d|d|d	|
d
|��q�Wn[|dkr|dks|dk	rS|j
t|d|d|d|d|d	|
d
|��|dk	r�t|tttt	f�r�|j
t||d|d|d|��n9x6|D].}|j
t||d|d|d|��q�W|dk	r]t|t
�s$|j
t||d|d|d|��n9x6|D].}|j
t||d|d|d|��q+Wx!|D]}|j|j��qdWyL|r�tdd
�|jD��}|djdj|���|j�Wnttfk
r�YnXWd|j|j��Xt|d�r"|j|j��|j�dS)zRun an app locallyr'r$r%r&Nrr r"r(r)rcss|]}t|j�VqdS)N)�str�name)�.0�s�r.�/web.py�	<genexpr>oszrun_app.<locals>.<genexpr>z6======== Running on {} ========
(Press CTRL+C to quit)z, �shutdown_asyncgens)�asyncioZget_event_looprZrun_until_completeZsetup�
isinstancer*�bytes�	bytearray�
memoryview�appendrrrr�start�sorted�sites�format�joinZrun_foreverr�KeyboardInterrupt�cleanup�hasattrr1�close)�apprrrrrr r!r"r$r%r&r'r(r)ZloopZrunnerr:�h�pr-Zsite�namesr.r.r/r(s�	

$





		cCs�tdddd�}|jddddd	�|jd
dddd
d�|jdddddtd
d�|jdddd�|j|�\}}|jjd�\}}}|s�|r�|jd�|jd�r�|jd�yt|�}Wn<t	k
r7}z|jd||f�WYdd}~XnXyt
||�}	Wn)tk
rv|jd||f�YnX|jdk	r�t
td�r�|jd�|	|�}
t|
d|jd |jd!|j�|jd"d#�dS)$N�descriptionzaiohttp.web Application server�progzaiohttp.web�
entry_func�helpzvCallable returning the `aiohttp.web.Application` instance to run. Should be specified in the 'module:function' syntax.�metavarz
entry-funcz-Hz
--hostnamez2TCP/IP hostname to serve on (default: %(default)r)�default�	localhostz-Pz--portz.TCP/IP port to serve on (default: %(default)r)�typeZ8080z-Uz--pathzjUnix file system path to serve on. Specifying a path will cause hostname and port arguments to be ignored.�:z,'entry-func' not in 'module:function' syntax�.z#relative module names not supportedzunable to import %s: %szmodule %r has no attribute %r�AF_UNIXz=file system paths not supported by your operating environmentrrr�messagezStopped
)r�add_argument�intZparse_known_argsrG�	partition�error�
startswithr�ImportError�getattr�AttributeErrorrr?�socketr�hostnamer�exit)�argvZ
arg_parser�argsZ
extra_argvZmod_str�_Zfunc_str�module�ex�funcrAr.r.r/�main|sN				
*

%rb�__main__)r)&r2rY�sys�argparser�collectionsr�	importlibr�rrrr	r
rrr
rrrr�logrrrrrrr�__all__r!ZAccessLoggerZ
LOG_FORMATrrb�__name__r\r.r.r.r/�<module>s<R






(



LO8