%PDF- %PDF-
Direktori : /opt/plesk/python/2.7/lib64/python2.7/wsgiref/ |
Current File : //opt/plesk/python/2.7/lib64/python2.7/wsgiref/simple_server.pyc |
� 5}�ac @ sc d Z d d l m Z m Z d d l Z d d l Z d d l m Z d Z d d d d g Z d e Z d e j j � d Z e d e Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d � Z e e d � Z e d k r_e d d e � Z e j j � Z d Ge d Gd Ge d Gd GHd d l Z e j d � e j � e j � n d S( s* BaseHTTPServer that implements the Python WSGI protocol (PEP 333, rev 1.21) 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. i����( t BaseHTTPRequestHandlert HTTPServerN( t SimpleHandlers 0.1t WSGIServert WSGIRequestHandlert demo_appt make_servers WSGIServer/s Python/i t t ServerHandlerc B s e Z e Z d � Z RS( c C sB z- | j j | j j d d � d | j � Wd t j | � Xd S( NR i i ( t request_handlert log_requestt statust splitt bytes_sentR t close( t self( ( s>