Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/BaseHTTPServer.pyo
m =5Dc @ s d Z d Z d d g Z d k Z d k Z d k Z d k Z d k Z d Z d Z d e i f d YZ d e i f d YZ e e d d Z e d j o e n d S( s HTTP server base class. Note: the class in this module doesn't implement any HTTP request; see SimpleHTTPServer for simple implementations of GET, HEAD and POST (including CGI scripts). It does, however, optionally implement HTTP/1.1 persistent connections, as of version 0.3. Contents: - BaseHTTPRequestHandler: HTTP request handler base class - test: test function XXX To do: - log requests even later (to capture byte count) - log user-agent header and other interesting goodies - send error log to separate file s 0.3t HTTPServert BaseHTTPRequestHandlerNs <head> <title>Error response</title> </head> <body> <h1>Error response</h1> <p>Error code %(code)d. <p>Message: %(message)s. <p>Error code explanation: %(code)s = %(explain)s. </body> c C s( | i d d i d d i d d S( Nt &s &t <s <t >s >( t htmlt replace( R ( ( t$ /usr/lib/python2.4/BaseHTTPServer.pyt _quote_html\ s c B s t Z d Z d Z RS( Ni c C sH t i i | | i i d \ } } t i | | _ | | _ d S( s. Override server_bind to store the server name.i N( t SocketServert TCPServert server_bindt selft sockett getsocknamet hostt portt getfqdnt server_namet server_port( R R R ( ( R R c s ( t __name__t __module__t allow_reuse_addressR ( ( ( R R _ s c B s t Z d Z d e i i d Z d e Z d Z d Z d Z e d Z e Z e d Z d Z d Z d d d Z d Z d Z d Z d Z d Z d d d d d d d g Z e d d d d d d d d d! d"