ÿØÿâ
Path : /opt/alt/python27/lib64/python2.7/ |
Current < : //opt/alt/python27/lib64/python2.7/BaseHTTPServer.pyo |
� �[ bc @ s d Z d Z d d g Z d d l Z d d l Z d d l Z d d l m Z m Z e � �- e j rx e d d e � n d d l Z Wd QXd d l Z d Z d Z d � Z d e j f d � � YZ d e j f d � � YZ e e d d � Z e d k re � 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 BaseHTTPRequestHandleri����N( t filterwarningst catch_warningst ignores .*mimetools has been removeds� <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> s text/htmlc C s( | j d d � j d d � j d d � S( Nt &s &t <s <t >s >( t replace( t html( ( s3 /opt/alt/python27/lib64/python2.7/BaseHTTPServer.pyt _quote_htmlc s c B s e Z d Z d � Z RS( i c C sH t j j | � | j j � d \ } } t j | � | _ | | _ 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( ( s3 /opt/alt/python27/lib64/python2.7/BaseHTTPServer.pyR j s ( t __name__t __module__t allow_reuse_addressR ( ( ( s3 /opt/alt/python27/lib64/python2.7/BaseHTTPServer.pyR f s c B sC e Z d Z d e j j � d Z d e Z d Z d � Z d � Z d � Z d� d � Z e 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"