File: //lib/python3/dist-packages/twisted/web/__pycache__/tap.cpython-310.pyc
o
�b( � @ s� d Z ddlZddlZddlZddlmZmZ ddlmZm Z ddl
mZmZm
Z
mZ ddlmZ ddlmZmZmZmZmZmZmZmZ G dd � d ej�Zd
d� ZG dd
� d
ej�Zdd� ZdS )z9
Support for creating a service which runs a web server.
� N)�service�strports)�
interfaces�reactor)� deprecate�reflect�
threadpool�usage)�pb)�demo�distrib�resource�script�server�static�twcgi�wsgic @ s e Zd ZdZdZg d�g d�g d�gZg d�g d�gZe�dd d
ej j
f d g� eje�
d�e�
d
�e�
d
�d�d�ZdZdd� Zdd� ZeZdd� Zdd� Zdd� ZeZdd� ZeZdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� ZeZd)d*� Z d+d,� Z!d-d.� Z"d/d0� Z#d1S )2�OptionszB
Define the options accepted by the I{twistd web} plugin.
z
[web options])�logfile�lNz/Path to web CLF (Combined Log Format) log file.)�certificate�c�
server.pemz=(DEPRECATED: use --listen) SSL certificate to use for HTTPS. )�privkey�kr z<(DEPRECATED: use --listen) SSL certificate to use for HTTPS.)�notracebacks�nzY(DEPRECATED: Tracebacks are disabled by default. See --enable-tracebacks to turn them on.)�display-tracebacks� z�Show uncaught exceptions during rendering tracebacks to the client. WARNING: This may be a security risk and expose private data!�personalr zvInstead of generating a webserver, generate a ResourcePublisher which listens on the port given by --listen, or ~/%s zif --listen is not specified.z*.logz*.pem)r r r )�
optActionsz�This starts a webserver. If you specify no arguments, it will be a
demo webserver that has the Test class from twisted.web.demo in it.c C s@ t j�| � g | d<