Server: appserver-7f0f8755-nginx-15961cad18524ec5a9db05f2a6a7e440
Current directory: /usr/lib/python2.7
Software: nginx/1.27.5
Shell Command
Create a new file
Upload file
File: SimpleHTTPServer.pyc
� ӫ[c @ s� d Z d Z d g Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z y d d l m Z Wn! e k r� d d l m Z n Xd e j f d � � YZ e e j d � Z e d k r� e � n d S( s� Simple HTTP Server. This module builds on BaseHTTPServer by implementing the standard GET and HEAD requests in a fairly straightforward manner. s 0.6t SimpleHTTPRequestHandleri����N( t StringIOc B s� e Z d Z d e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e j sk e j � n e j j � Z e j i d d 6d d 6d d 6d d 6� RS( sW Simple HTTP request handler with GET and HEAD commands. This serves files from the current directory and any of its subdirectories. The MIME type for files is determined by calling the .guess_type() method. The GET and HEAD requests are identical except that the HEAD request omits the actual contents of the file. s SimpleHTTP/c C s> | j � } | r: z | j | | j � Wd | j � Xn d S( s Serve a GET request.N( t send_headt copyfilet wfilet close( t selft f( ( s&