| Server IP : 68.178.164.50 / Your IP : 216.73.216.142 Web Server : Apache System : Linux 50.164.178.68.host.secureserver.net 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64 User : rathinambschool ( 1053) PHP Version : 8.2.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.11/wsgiref/__pycache__/ |
Upload File : |
�
!A?h3 � �< � d Z ddlmZmZ ddlZddlZddlmZ ddl m
Z
dZg d�Zdez Z
e
� � d z ej � � � d z Ze
d
z ez Z G d� de� � Z G d
� de� � Z G d� de� � Zd� Zeefd�Zedk r� edde� � 5 Zej � � � Z eded ded d� � ddlZ ej d� � e� � � ddd� � dS # 1 swxY w Y dS 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_server�WSGIServer/�/� c � � e Zd ZeZd� ZdS )�
ServerHandlerc �� � | j � | j � dd� � d | j � � t j | � � d S # t j | � � w xY w)Nr
� r )�request_handler�log_request�status�split�
bytes_sentr �close��selfs �./usr/lib64/python3.11/wsgiref/simple_server.pyr zServerHandler.close sp � � &�� �,�,���!�!�#�a�(�(��+�T�_�
�
�
�
���%�%�%�%�%��M���%�%�%�%���s �?A �A-N)�__name__�
__module__�__qualname__�software_version�server_softwarer � � r r r s( � � � � � �&�O�&� &� &� &� &r! r c �. � e Zd ZdZdZd� Zd� Zd� Zd� ZdS )r z7BaseHTTPServer that implements the Python WSGI protocolNc �V � t j | � � | � � � dS )z.Override server_bind to store the server name.N)r �server_bind�
setup_environr s r r$ zWSGIServer.server_bind0 s+ � ���t�$�$�$��������r! c � � i x}| _ | j |d<