/usr/lib64/python3.9/wsgiref/__pycache__
Edit: /usr/lib64/python3.9/wsgiref/__pycache__/simple_server.cpython-39.pyc (5301B)
a
´i3 ã @ s2 d Z ddlmZmZ ddlZddlZddlmZ ddl m
Z
dZg d¢Zde Z
e
ƒ d ej ¡ d Ze
d
e ZG dd„ deƒZG d
d„ deƒZG dd„ deƒZdd„ Zeefdd„Zedk�r.eddeƒ�LZej ¡ Zeded ded dƒ ddlZe d¡ e ¡ W d ƒ n1 �s$0 Y 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 @ s e Zd ZeZdd„ ZdS )Ú
ServerHandlerc C s> z,| j | j dd¡d | j¡ W t | ¡ nt | ¡ 0 d S )Nr é r )Úrequest_handlerZlog_requestÚstatusÚsplitZ
bytes_sentr Úclose©Úself© r ú-/usr/lib64/python3.9/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_environr r r r r 0 s
zWSGIServer.server_bindc C sF i }| _ | j|d<