Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/BaseHTTPServer.pyo |
hRc @ s d Z d Z d d g Z d d k Z d d k Z d d k Z d d k Z d 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 BaseHTTPRequestHandleriNs <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 replace( t html( ( s* /usr/local/lib/python2.5/BaseHTTPServer.pyt _quote_html\ s c B s e Z d Z d Z RS( i 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 sockett getsocknamet getfqdnt server_namet server_port( t selft hostt port( ( s* /usr/local/lib/python2.5/BaseHTTPServer.pyR c s ( t __name__t __module__t allow_reuse_addressR ( ( ( s* /usr/local/lib/python2.5/BaseHTTPServer.pyR _ s c B s e Z d Z d e i i d Z d e Z d Z d Z d Z d d Z e Z d d Z d Z d Z d d d Z d Z d Z d Z d d Z d Z d d d d d d d g Z d d d d d d d d d d! d"