File "simple_server.cpython-36.opt-1.pyc"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/lib64/python3.6/wsgiref/__pycache__/simple_server.cpython-36.opt-1.pyc
File size: 5.07 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit
3
\
@ s d Z ddlmZmZ ddlZddlZddlmZ ddl m
Z
dZddd d
gZde Z
e
d ejj d Ze
d
e ZG dd deZG dd deZG dd deZdd Zeefdd
ZedkreddeBZejj Zeded ded d ddlZejd ej 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
WSGIServerWSGIRequestHandlerdemo_appmake_serverzWSGIServer// c @ s e Zd ZeZdd ZdS )
ServerHandlerc C s4 z"| j j| jjddd | j W d tj| X d S )Nr r )request_handlerZlog_requestZstatussplitZ
bytes_sentr close)self r -/usr/lib64/python3.6/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 j| | j 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<