| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib64/python3.7/wsgiref/__pycache__/ |
Upload File : |
B
p}�c � @ s d Z ddlmZmZ ddlZddlZddlmZ ddl m
Z
dZddd d
gZde Z
e
� d ej�� d Ze
d
e ZG dd� de�ZG dd� de�ZG dd� de�Zdd � Zeefdd
�Zedk�redde��BZej�� Zeded ded d� ddlZe�d� e�� W dQ R X dS )a! BaseHTTPServer that implements the Python WSGI protocol (PEP 3333)
This is both an example of how WSGI can be implemented, and a basis for running
simple web applications on a local machine, such as might be done when testing
or debugging an application. It has not been reviewed for security issues,
however, and we strongly recommend that you use a "real" web server for
production use.
For example usage, see the 'if __name__=="__main__"' block at the end of the
module. See also the BaseHTTPServer module docs for other API information.
� )�BaseHTTPRequestHandler�
HTTPServerN)�
SimpleHandler)�python_implementationz0.2�
WSGIServer�WSGIRequestHandler�demo_app�make_serverzWSGIServer/�/� c @ s e Zd ZeZdd� ZdS )�
ServerHandlerc C s4 z"| j �| j�dd�d | j� W d t�| � X d S )Nr � r )�request_handlerZlog_requestZstatus�splitZ
bytes_sentr �close)�self� r �:/opt/alt/python37/lib64/python3.7/wsgiref/simple_server.pyr s zServerHandler.closeN)�__name__�
__module__�__qualname__�software_versionZserver_softwarer r r r r r s r c @ s4 e Zd ZdZdZdd� Zdd� Zdd� Zd d
� ZdS )r z7BaseHTTPServer that implements the Python WSGI protocolNc C s t �| � | �� dS )z.Override server_bind to store the server name.N)r �server_bind�
setup_environ)r r r r r 0 s
zWSGIServer.server_bindc C sF i }| _ | j|d<